CentOS
bitsCN.com
Centos下安装mysql命令 # yum list mysql 安装mysql客户端 # yum install mysql # yum list mysql-server 安装mysql 服务器端 # yum install mysql-server 安装过后需要启动mysql服务,我们可以通过一下两总方法: 1、service mysqld start 2、/etc/init.d/mysqld start 启动过后需要给mysql创建一个root管理员: # mysqladmin -u root password jereh123 后我们就可以通过以下连接mysql,进入mysql命令行了: # mysql -u root -p 然后可以新增一个用户grant all on *.* to 'user'@'%' IDENTIFIED BY 'password'; FLUSH PRIVILEGES; 作者 枫爱若雪 bitsCN.com
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