مضى على الشبكة و يوم من العطاء.
  • السلام عليكم ورحمة الله وبركاته، نرجوا كتابة طلبك او سؤالك باللغة العربية مع ارفاق صورة عن الخطأ او توضيح كافي للمشكلة.

[ مُجاب ] LOGIN FAILED: root: (Unable to Connect: invalid packet: scramble_length(0) != length of scramble(21))

  • بادئ الموضوع بادئ الموضوع A_K
  • تاريخ البدء تاريخ البدء

A_K

./عضو جديد

السمعة:

يسعد مساكم انا غلبتكم معي وبعتذر منكم جميعا
هذا الخلل LOGIN FAILED: root: (Unable to Connect: invalid packet: scramble_length(0) != length of scramble(21))
على mysql_login
كان شغال معي ومافي اي مشكله . لما عملت upgrade للكالي لينكس بلش يطلع مشاكل على الميتاسبلويت
يلي عنده معلومه يفيدنا لو سمحتو والمشاكل طلعت بعد الترقية يمكن صار في تعارض بالنسخ ما الحل ؟
 
الحل
ما لقيت الملف هذا ملف الاعدادات اذا بتقدر تساعدني انا كل المشكله صارت بعد الابجريد
تأكد من الاسطر التاليه انها هيك وجرب من جديد وان شاء الله وضعك تمام
كود:
user = mysql
datadir = /var/lib/mysql
bind-address = 0.0.0.0
log_error = /var/log/mysql/error.log
innodb_buffer_pool_size = 8G
الميتاسبلويت أو mysql
تأكد من MySQL وجرب اعمللها ريستارت

وتأكد انه الـ Metasploit محدثه

واذا ما زبط افتح ملف اللوق وابعث اللي جواته

باي ديفلت بتلاقيه هون
var/log/mysql/error.log/
اذا ما زبط جرب ابحث عنه
 
التعديل الأخير:
اخوي هذا ما لقيت الملف هذا ملف الاعدادات اذا بتقدر تساعدني انا كل المشكله صارت بعد الابجريد

Use it for options that only the server (but not clients) should see​

this is read by the standalone daemon and embedded servers​

[server]

this is only for the mysqld standalone daemon​

[mysqld]

* Basic Settings​

#user = mysql
pid-file = /run/mysqld/mysqld.pid
basedir = /usr
#datadir = /var/lib/mysql
#tmpdir = /tmp

Broken reverse DNS slows down connections considerably and name resolve is​

safe to skip if there are no “host by domain name” access grants​

#skip-name-resolve

Instead of skip-networking the default is now to listen only on​

localhost which is more compatible and is not less secure.​

bind-address = 127.0.0.1

* Fine Tuning​

#key_buffer_size = 128M
#max_allowed_packet = 1G
#thread_stack = 192K
#thread_cache_size = 8

This replaces the startup script and checks MyISAM tables if needed​

the first time they are touched​

#myisam_recover_options = BACKUP
#max_connections = 100
#table_cache = 64

* Logging and Replication​

Note: The configured log file or its directory need to be created​

and be writable by the mysql user, e.g.:​

$ sudo mkdir -m 2750 /var/log/mysql​

$ sudo chown mysql /var/log/mysql​

Both location gets rotated by the cronjob.​

Be aware that this log type is a performance killer.​

Recommend only changing this at runtime for short testing periods if needed!​

#general_log_file = /var/log/mysql/mysql.log
#general_log = 1

When running under systemd, error logging goes via stdout/stderr to journald​

and when running legacy init error logging goes to syslog due to​

/etc/mysql/conf.d/mariadb.conf.d/50-mysqld_safe.cnf​

Enable this if you want to have error logging into a separate file​

#log_error = /var/log/mysql/error.log

Enable the slow query log to see queries with especially long duration​

#log_slow_query_file = /var/log/mysql/mariadb-slow.log
#log_slow_query_time = 10
#log_slow_verbosity = query_plan,explain
#log-queries-not-using-indexes
#log_slow_min_examined_row_limit = 1000

The following can be used as easy to replay backup logs or for replication.​

note: if you are setting up a replication slave, see README.Debian about​

other settings you may need to change.​

#server-id = 1
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
#max_binlog_size = 100M

* SSL/TLS​

For documentation, please read​

Securing Connections for Client and Server - MariaDB Knowledge Base

#ssl-ca = /etc/mysql/cacert.pem
#ssl-cert = /etc/mysql/server-cert.pem
#ssl-key = /etc/mysql/server-key.pem
#require-secure-transport = on

* Character sets​

MySQL/MariaDB default is Latin1, but in Debian we rather default to the full​

utf8 4-byte character set. See also client.cnf​

character-set-server = utf8mb4
collation-server = utf8mb4_general_ci

* InnoDB​

InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.​

Read the manual for more InnoDB related options. There are many!​

Most important is to give InnoDB 80 % of the system RAM for buffer use:​

InnoDB System Variables - MariaDB Knowledge Base

#innodb_buffer_pool_size = 8G

this is only for embedded server​

[embedded]

This group is only read by MariaDB servers, not by MySQL.​

If you use the same .cnf file for MySQL and MariaDB,​

you can put MariaDB-only options here​

[mariadb]

This group is only read by MariaDB-10.11 servers.​

If you use the same .cnf file for MariaDB of different versions,​

use this group for options that older servers don’t understand​

[mariadb-10.11
 
اخوي عبود ممكن اتواصل معك ديسكورد؟؟؟؟
 
ما لقيت الملف هذا ملف الاعدادات اذا بتقدر تساعدني انا كل المشكله صارت بعد الابجريد
تأكد من الاسطر التاليه انها هيك وجرب من جديد وان شاء الله وضعك تمام
كود:
user = mysql
datadir = /var/lib/mysql
bind-address = 0.0.0.0
log_error = /var/log/mysql/error.log
innodb_buffer_pool_size = 8G
 
الحل
اخوي عبود ممكن اتواصل معك ديسكورد؟؟؟؟
مافي مشكله بس خلينا هون عشان اذا حدا واجهو مشكله نفس مشكلتك يعرف يحلها
  • اعتذر على التأخر بالرد بسبب اني مشغول شوي
 
  • Like
التفاعلات: A_K
هذا الملف يلي قصدك عنه ؟
2023-10-07 6:28:48 0 [Note] Starting MariaDB 10.11.4-MariaDB-1 source revision as process 3815

2023-10-07 6:28:48 0 [Note] InnoDB: Compressed tables use zlib 1.2.13
2023-10-07 6:28:48 0 [Note] InnoDB: Number of transaction pools: 1
2023-10-07 6:28:48 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2023-10-07 6:28:48 0 [Note] InnoDB: Using liburing
2023-10-07 6:28:48 0 [Note] InnoDB: Initializing buffer pool, total size = 8.000GiB, chunk size = 128.000MiB
2023-10-07 6:28:48 0 [Note] InnoDB: Completed initialization of buffer pool
2023-10-07 6:28:48 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
2023-10-07 6:28:48 0 [Note] InnoDB: 128 rollback segments are active.
2023-10-07 6:28:48 0 [Note] InnoDB: Setting file ‘./ibtmp1’ size to 12.000MiB. Physically writing the file full; Please wait …
2023-10-07 6:28:48 0 [Note] InnoDB: File ‘./ibtmp1’ size is now 12.000MiB.
2023-10-07 6:28:48 0 [Note] InnoDB: log sequence number 47126; transaction id 16
2023-10-07 6:28:48 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2023-10-07 6:28:48 0 [Note] Plugin ‘FEEDBACK’ is disabled.
2023-10-07 6:28:48 0
You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
2023-10-07 6:28:48 0 [Note] Server socket created on IP: ‘0.0.0.0’.
2023-10-07 6:28:48 0 [Note] InnoDB: Buffer pool(s) load completed at 231007 6:28:48
2023-10-07 6:28:48 0 [Note] /usr/sbin/mariadbd: ready for connections.
Version: ‘10.11.4-MariaDB-1’ socket: ‘/run/mysqld/mysqld.sock’ port: 3306 Debian 12
 

آخر المشاركات

فانوس

رمضان
عودة
أعلى