Home >Database >Mysql Tutorial >suse 装配 mysql

suse 装配 mysql

WBOY
WBOYOriginal
2016-06-07 16:25:271009browse

suse 安装 mysql 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.sl

suse 安装 mysql

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


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

<code>Access denied for user 'root'@'localhost' (using password: NO)
</code><pre class="brush:php;toolbar:false"><code>Access denied for user 'root'@'localhost' (using password: YES)</code>

解决办法参考:http://superuser.com/questions/603026/mysql-how-to-fix-access-denied-for-user-rootlocalhost

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