red hat linux 5 mysql安装配置

 上传MySQL-server-community-5.1.39-0.rhel5.i386.rpm
MySQL-client-community-5.1.39-0.rhel5.i386.rpm到/software/mysql
   2、 查看是否已经安装了mysql
        rpm –qa | grep mysql
----------------------------------------
---------------------------------------
libdbi-dbd-mysql-0.8.1a-1.2.2
mysql-5.0.22-2.1.0.1
mysql-server-5.0.22-2.1.0.1
mysql-connector-odbc-3.51.12-2.2
You have mail in /var /spool/mail/root

---------------------------------------------------------------------------------
        
   显示mysql -5.0.22-2.1.0.1已经安装
3、修改密码(默认密码为空)
   mysqladmin –uroot –p password zhangyuan
   enter password:(在这里打空格)
4、设置mysqld 自启动
   ntsysv
   service mysqld restart
/*5、允许远程访问数据库
mysql –uroot –pzhangyuan
use mysql
update mysql.user set Host=’%’ where Host=’localhost’ and user=’root’
service mysqld restart
6、我们这样可以在本地机器上通过mysql-font来访问数据库*/
7、数据库的导入
   mysql>create database education character set GBK
   # mysql –h localhost –uroot –plai education <./education.sql

你可能感兴趣的:(sql,mysql,linux,SQL Server)