0% found this document useful (0 votes)
22 views

Grant All On To By: Privileges . at Identified

To set the MySQL root password, use the mysqladmin command with the -u root option and specify the new password. To grant all privileges to a user across all databases, use the GRANT ALL PRIVILEGES statement with the *.* wildcard and specify the username and hostname. If MySQL fails to start or errors about privilege tables not existing occur, reinitialize the database files with mysql_install_db specifying a new data path.

Uploaded by

Manoj Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Grant All On To By: Privileges . at Identified

To set the MySQL root password, use the mysqladmin command with the -u root option and specify the new password. To grant all privileges to a user across all databases, use the GRANT ALL PRIVILEGES statement with the *.* wildcard and specify the username and hostname. If MySQL fails to start or errors about privilege tables not existing occur, reinitialize the database files with mysql_install_db specifying a new data path.

Uploaded by

Manoj Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Tosetmysqlrootpassword

mysqladminurootpassword<expaswd>
Tograntprivilegestorootuser
grantallprivilegeson*.*to<username>@'%'identifiedby'mypasswd';
Tograntpermisiionstoebiansysmaint'@'localhost
#mysql>GRANTALLPRIVILEGESON*.*TO'debiansysmaint'@'localhost'IDENTIFIEDBY
'passwdhere';
#checkthepasswdin/etc/mysql/debian.cnf
mysqlstartfailedorgettingthiserror&&Can'topenandlockprivilegetables:Table
'mysql.host'doesn'texist
#sudomysql_install_dbuser=mysqlldata=<newpath>
Createmysqluser
CREATEUSER'newuser'@'localhost'IDENTIFIEDBY'password';
totakesingledatabasebackup
mysqldumpdatabase_name>database_name.sql
singletablebackup
mysqldumpurootptecmintwordpresswp_posts>wordpress_posts.sql
multipletables
mysqldumpurootptecmintwordpresswp_postswp_comments>
wordpress_posts_comments.sql

You might also like