📜  phpmyadmin 密码 root - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:24.799000             🧑  作者: Mango

代码示例1
-- DEFAULT: Username:root , Password: –  (none)
mysql> SET PASSWORD FOR root@localhost=PASSWORD('mypassword');
mysql> GRANT ALL PRIVILEGES ON *.* TO root@localhost 
    IDENTIFIED BY 'mypassword' WITH GRANT OPTION;