MySQL'de sorgu yazmaya başlamak istiyorum.
'hibeleri göster' gösterir:
+--------------------------------------+
| Grants for @localhost |
+--------------------------------------+
| GRANT USAGE ON *.* TO ''@'localhost' |
+--------------------------------------+
Herhangi bir kullanıcı kimliğim yok, ancak bir kullanıcı yapmak istediğimde ayrıcalıklarım yok, ayrıca bir kullanıcım bile yokken nasıl ayrıcalıklar yapacağımı bilmiyorum!
mysql> CREATE USER 'parsa'@'localhost' IDENTIFIED BY 'parsa';
ERROR 1227 (42000): Access denied; you need (at least one of) the CREATE USER pr
ivilege(s) for this operation
Root olarak oturum açmaya çalıştım:
mysql> mysql -u root -p;
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
-u root -p' at line 1
mysql> mysql -u root -p root;
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
-u root -p root' at line 1
MySQL veritabanınız için bir kök hesap oluşturmanız gerekebilir:
Terminal tipinde:
mysqladmin -u root password 'root password goes here'
Ve sonra MySQL istemcisini çağırmak için:
mysql -h localhost -u root -p
Tam oturum açma komutunu denemek isteyebilirsiniz:
mysql -h host -u root -p
burada ana bilgisayar 127.0.0.1
olacaktır.
Bunu sadece işbirliğinin var olduğundan emin olmak için yapın.
mysql -u root -p' kullanmak birçok veritabanı araması yapmama izin veriyor, ancak bir yol ayarı nedeniyle herhangi bir veritabanı oluşturmayı reddediyor.