Fedora MySQL Build

Source: Internet
Author: User

Yum install MySQL yum install mysql-server yum install mysql-devel chgrp-r mysql/var/lib/mysql chmod-r 770/var/lib/mys Ql

Service mysqld Start


Change the root password

mysqladmin-u root password ' newpassword ' Change password

mysql-u root-p Login Database

mysql> DROP DATABASE test; Delete Test Database

mysql> Delete from mysql.user WHERE user = "; Delete Anonymous account

mysql> FLUSH privileges; Overloaded Permissions

add MySQL User: GRANT all privileges on my_db.* to ' user ' @ ' localhost ' identified by ' password ';

# sudo service mysqld restart Restart Services

# sudo service mysqld stop shutdown Services

/etc/rc.d/init.d/mysqld Status View MySQL state

# sudo chkconfig--del mysqld Delete Service list in MySQL service

chkconfig--list See if MySQL is in the auto-launch list

#sudo/etc/init.d/mysqld start MySQL service

#sudo/etc/init.d/mysqld stop to shut down the MySQL service

#sudo/etc/init.d/mysqld Restart restart MySQL service


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.