Mysql

Published on March 2017 | Categories: Documents | Downloads: 71 | Comments: 0 | Views: 269
of 1
Download PDF   Embed   Report

Comments

Content

To set mysql root password 
mysqladmin ­u root password <ex paswd>
To grant privileges to root user 
grant all privileges on *.* to  <username>@'%' identified by 'mypasswd';
To grant permisiions to ebian­sys­maint'@'localhost
# mysql> GRANT ALL PRIVILEGES ON *.* TO 'debian­sys­maint'@'localhost' IDENTIFIED BY 
'passwd here ';
#check the passwd in /etc/mysql/debian.cnf
   mysql start failed or getting this error && Can't open and lock privilege tables: Table 
'mysql.host' doesn't exist
#sudo mysql_install_db –­user=mysql –ldata=<new path>
Create mysql user
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
to take single database backup 
mysqldump database_name > database_name.sql
single table back up 
mysqldump ­u root ­ptecmint wordpress wp_posts > wordpress_posts.sql
multiple tables
mysqldump ­u root ­ptecmint wordpress wp_posts wp_comments > 
wordpress_posts_comments.sql

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close