Home  >  Article  >  Database  >  Install and Manage MySQL_MySQL

Install and Manage MySQL_MySQL

WBOY
WBOYOriginal
2016-06-01 13:56:37872browse

一些最开始的使用方法
download standard binary distribution
1 tar xzvf mysql-standard-*.tar.gz to /usr/local    //extract package
2 cd /usr/local


    ln -s mysql-standard* mysql                 //make symbol link
3 cd mysql
    scripts/mysql_install_db                //initialize db
4 bin/mysqld_safe &                    //start mysql server
5 bin/mysqladmin -u root password 'newpwd'        //change password for root
    bin/mysqladmin -u root password newpwd        //if in windows
6 bin/mysql -u root -p$pwd                //enter mysql
    mysqladmin -u root -p$pwd shutdown            //shutdown mysql

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn