inux mysql install
mysql download url:http://dev.mysql.com/downloads/mysql/5.1.html 连接到官网后下载适合你系统内核的 mysql 版本 我用的是RedHat Enterprise5 Server
下载后安装:
注释:Type the following command as root user
也就是说以下命令适合root用户,如果不是,su 一下
#yum install mysql-server mysql
上一步成功后执行下面的命令:
Start MySQL Service
To start mysql server type the following command;
#chkconfig mysql on
#/etc/init.d/mysqld start
注解:以上两条命令分别是开机启动 MySQL 服务 启动MySQL
上一步成功后执行下面命令:
Setup Mysql root password
Type the following command to setup a password for root user
#mysqladmin -u root password newpassword
注释:以上命令主要是为了安全其间重新设置 root 用户的 密码
上一步成功后执行下面命令:
Test mysql connectivity
Type the following command to connect to MySQL server;
#mysql -u root -p
注释:以上命令为连接数据库。至此数据库已经成功安装了!
花开花败2011 于 2011-02-12 20:17:14发表:
我顶
mg271603433 于 2011-01-05 18:26:14发表:
顶一个。
ylibiao 于 2010-11-28 19:28:33发表:
顶上
hxbdengni 于 2010-04-06 11:04:04发表:
你是在那种系统下面操作的啊
酱橘皮 于 2010-04-05 16:36:50发表:
我安装时出现了点状况
正在预设定软件包 ...
(正在读取数据库 ... 系统当前总共安装有 142784 个文件和目录。)
正在解压缩 mysql-server-5.0 (从 .../mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.3_i386.deb) ...
Aborting downgrade from (at least) 5.1 to 5.0.
dpkg:处理 /var/cache/apt/archives/mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.3_i386.deb (--unpack)时出错:
子进程 pre-installation script 返回了错误号 1
选中了曾被取消选择的软件包 mysql-server。
正在解压缩 mysql-server (从 .../mysql-server_5.1.30really5.0.75-0ubuntu10.3_all.deb) ...
* Stopping MySQL database server mysqld [ OK ]
在处理时有错误发生:
/var/cache/apt/archives/mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
shanben 于 2010-04-05 14:40:18发表:
顶上楼
sundh1981 于 2010-04-05 11:24:23发表:
1# 酱橘皮
在linux下安装mysql都大同小异。。。。
inux mysql install
mysql download url:http://dev.mysql.com/downloads/mysql/5.1.html
连接到官网后下载适合你系统内核的 mysql 版本 我用的是RedHat Enterprise5 Server
下载后安装:
注释:Type the following command as root user
也就是说以下命令适合root用户,如果不是,su 一下
#yum install mysql-server mysql
上一步成功后执行下面的命令:
Start MySQL Service
To start mysql server type the following command;
#chkconfig mysql on
#/etc/init.d/mysqld start
注解:以上两条命令分别是开机启动 MySQL 服务 启动MySQL
上一步成功后执行下面命令:
Setup Mysql root password
Type the following command to setup a password for root user
#mysqladmin -u root password newpassword
注释:以上命令主要是为了安全其间重新设置 root 用户的 密码
上一步成功后执行下面命令:
Test mysql connectivity
Type the following command to connect to MySQL server;
#mysql -u root -p
注释:以上命令为连接数据库。至此数据库已经成功安装了!