Home > Database > Mysql Tutorial > MYSQL 配置_MySQL

MYSQL 配置_MySQL

WBOY
Release: 2016-05-31 08:48:57
Original
869 people have browsed it

3、添加配置文件


运行下面命令增加一个配置文件
sudo cp /usr/local/mysql/support-files/my-large.cnf  /etc/my.cnf

4、修改Mysql密码


用以下命令修改mysql密码设置为root123$ /usr/local/mysql/bin/mysql -u root
mysql> use mysql
mysql> UPDATE user SET password=PASSWORD("root123") WHERE user='root';
mysql> FLUSH PRIVILEGES;
mysql> QUIT
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template