Home  >  Article  >  Database  >  suse安装mysql_MySQL

suse安装mysql_MySQL

WBOY
WBOYOriginal
2016-06-01 13:17:251701browse

1.下载:

mysql地址:http://dev.mysql.com/downloads/mysql/ 选择你要下载的类型,这个包里有我们要用到的两个server ,clinet

2.解压:

有很多个文件,下面用到的就这两个

MySQL-client-5.5.20-1.sles11.x86_64.rpm

MySQL-server-5.5.20-1.sles11.x86_64.rpm

3.安装服务器:

rpm -ivh MySQL-server-5.5.20-1.sles11.x86_64.rpm

4.安装客户端

rpm -ivh MySQL-client-5.5.20-1.sles11.x86_64.rpm

5.启动服务

/etc/init.d/mysql start

我在安装的过程中报了这样的错误,后来查文档解决了。

Access denied for user 'root'@'localhost' (using password: NO)
Access denied for user 'root'@'localhost' (using password: YES)

前提是你要kill掉 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