İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

mysql şifresini

scorpi

0
İyinet Üyesi
Katılım
11 Ocak 2008
Mesajlar
32
Reaction score
0
mysql şifresini degitirdikten sonra yedek almaya çalıştıgımda
Kod:
DBI connect('mysql:localhost','root',...) failed: Access denied for user 'root'@'localhost' (using password: NO) at /usr/local/cpanel/Cpanel/Mysql.pm line 38
DBI connect('mysql:localhost','root',...) failed: Access denied for user 'root'@'localhost' (using password: NO) at /usr/local/cpanel/Cpanel/Mysql.pm line 38
Done
Grabbing mysql privs...DBI connect('mysql:localhost','root',...) failed: Access denied for user 'root'@'localhost' (using password: NO) at /usr/local/cpanel/Cpanel/Mysql.pm line 38



böyle bir hata veriyor bunu nasıl düzeltebilirim acaba
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
69
Konum
Sakarya
2 yöntemden birinini uygulaman yeterli

1. şifresiz bir root kullanıcısı ekleyerek.
2. yedeği alan programa root şifresini girerek
 

scorpi

0
İyinet Üyesi
Katılım
11 Ocak 2008
Mesajlar
32
Reaction score
0
root şifresini nasıl kaldırabiliriz acaba ssh ile.
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
69
Konum
Sakarya
root şifresini sıfırlamak yerine boş şifreli bir root kullanıcısını eklemeyi dene, sorun olursa sıfırlamayı da gösteririm:

MySQL e ssh den root ile giriş yapın ve şifresiz root kullanıcısı eklemek için aşağıdaki komutları çalıştırın

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '';
Query OK, 0 rows affected (0.01 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
 

scorpi

0
İyinet Üyesi
Katılım
11 Ocak 2008
Mesajlar
32
Reaction score
0
mysql> mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '' ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysql > GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY ''' at line 1
mysql> Query OK, 0 rows affected (0.01 sec)
->
-> mysql> flush privileges;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Query OK, 0 rows affected (0.01 sec)
mysql> flush privileges' at line 1
mysql> Query OK, 0 rows affected (0.01 sec)
-> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Query OK, 0 rows affected (0.01 sec)
GRANT ALL PRIVILEGES ON *.* TO 'root'@'loc' at line 1
mysql> Query OK, 0 rows affected (0.01 sec)
-> flush privileges;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Query OK, 0 rows affected (0.01 sec)
flush privileges' at line 1
mysql> Query OK, 0 rows affected (0.01 sec)


böyle bir sorun oldu.
 

scorpi

0
İyinet Üyesi
Katılım
11 Ocak 2008
Mesajlar
32
Reaction score
0
[root@host ~]# /usr/bin/mysql mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

mysql girmeye çalıştıgımdada hata veriyor.
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
69
Konum
Sakarya
mysql> mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '' ;

mysql e girsikden sonra kırmızı kısmı koymanıza gerek yok! O kısımlar anlatım için konulmuştur komut değildir.
 

scorpi

0
İyinet Üyesi
Katılım
11 Ocak 2008
Mesajlar
32
Reaction score
0
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '';
Query OK, 0 rows affected (0.02 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye
[root@host ~]# service mysql restart
Shutting down MySQL. SUCCESS!
Starting MySQL SUCCESS!
[root@host ~]# /scripts/pkgacct akadem
pkgacct started.
pkgacct version 6.0 - running with uid 0
using time::hires for speedups
rdate: rdate: could not set system time: Operation not permitted
Copying Reseller Config...Done
Copying Suspension Info (if needed)...Done
Copying SSL Certificates, CSRS, and Keys...Done
Copying Counter Data....Done
Copying Bandwidth Data.......-----------.com...Done
Copying Dns Zones.......-------------...Done
Copying Mail files....Done
Copying frontpage files....Done
Copying proftpd file....Done
Copying www logs.............
.........
Done
Copy userdata............
Copy custom virtualhost templates............
Done
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'
Grabbing mysql dbs............
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect

abi kullanucı yaptım resetledim mysql ama yine yedek alırken aynı hatayı verdi.
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
69
Konum
Sakarya
Hata mesajından anladığım kadarı ile yedek alan program root şifrenin belli bşey olmasını istiyor.
Ne olmasını istiyorsa root şifresini ona ayarlamalısın. Panelde root şifresi için öyle biryer olabilir.
 

scorpi

0
İyinet Üyesi
Katılım
11 Ocak 2008
Mesajlar
32
Reaction score
0
putty le alıyorum ,eskiden şifre yokken hiç sorun çıkarmadan alıyordum ama şifre girdikten sonra bunu yapmaya başladı.
 

scorpi

0
İyinet Üyesi
Katılım
11 Ocak 2008
Mesajlar
32
Reaction score
0
benim gibi sorun yaşayan varsa

DBI connect('mysql:localhost','root',...) failed: Access denied for user 'root'@'localhost' (using password: NO) at /usr/local/cpanel/Cpanel/Mysql.pm line 38

bu dosyada root hala şifresiz olarak gözküyor , root şifresini girince bütün sorun çözlüyor.
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Üst