linux不是很熟...装个mysql都装不好..
装的是简单的rpm包!但是rpm后
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'Alternatively you can run:
/usr/bin/mysql_secure_installationwhich will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.See the manual for more instructions.Please report any problems with the /usr/bin/mysqlbug script!
但是我网上搜索的后面还有Start Mysql之类的.....................
我的却没有,而且查询端口都没有3306.请问还需要弄些什么吗??????版本是MySQL-server-5.5.28-1.linux2.6.i386.rpm
装的是简单的rpm包!但是rpm后
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'Alternatively you can run:
/usr/bin/mysql_secure_installationwhich will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.See the manual for more instructions.Please report any problems with the /usr/bin/mysqlbug script!
但是我网上搜索的后面还有Start Mysql之类的.....................
我的却没有,而且查询端口都没有3306.请问还需要弄些什么吗??????版本是MySQL-server-5.5.28-1.linux2.6.i386.rpm
解决方案 »
- 用什么储存大量文件信息比较好
- 关于VC++ 6.0中工具栏的调用
- 有没有系统讲授activeX和MFC组件的书啊资料啊啥的?
- 做个求绝对值的模版函数,请问如何写?
- 相信这里的很多的朋友,都玩过kele8里面的游戏!!如果哪位朋友对kele8里面的游戏比较的了解,希望给我几点意见!!!
- 急,急,急,求助,有没有人做过Zebra 90Xi 系列的条码打印程序啊?
- 送分讨论*.c到*.cpp在vc++中编译时应该注意哪些问题!
- MFC程序问题
- ADO 连接数据库超时设置
- 在VC中外挂程序的问题。
- 还是以前的老问题,MFC42.dll异常,tigger,鹦鹉在吗?
- 关于对CArray的元素进行排序的问题
但是你更应该到linux或者数据库版块问
使用命令groupadd创建用户组
命令格式:groupadd mysql
使用命令useradd创建用户并分配到mysql组中
命令格式:useradd –g mysql mysql
使用命令passwd修改用户密码
命令格式:passwd mysql
我的密码: password
4.配置MySQL数据库环境
4.1.使用命令cp拷贝示例配置文件到系统环境
命令格式:此步骤在解压的目录
cp ./support-files/my-medium.cnf /etc/my.cnf
拷贝目标文件my.cnf必须要这样命名,该名称为数据库默认配置文件。
4.2.使用命令VI编辑配置文件
命令格式: vi /etc/my.cnf
查找 /skip /后面为查找内容
查找skip-federated选项是否打开,把它注释掉。
并保存退出
5.初始化系统数据库
5.1.使用命令cd进入安装目录 也就是上面的/user/local/mysql
命令格式:cd /$MYSQL_HOME
如果使用参数—prefix则进入参数指定路径,否则进入/usr/local默认路径查找
5.2.使用命令chown修改安装目录权限
命令格式:chown –R mysql:root . .代表在当前目录 及其下面的内容
5.3.初始化系统数据库
命令格式:bin/mysql_install_db --user=mysql
显示一些帮助信息
6.修改数据库安全性
6.1修改数据库文件夹权限
命令格式:chown –R mysql var
var为数据库默认的数据文件夹,文件夹名称以实际情况而定
6.2启动服务并修改root用户密码 命令格式:
bin/mysqld_safe –user=mysql &
bin/mysqladmin –u root password ‘’
这是我安装过程记录一的步骤w
[root@localhost local]# rpm -ivh MySQL-server-5.5.28-1.linux2.6.i386.rpm
Preparing... ########################################### [100%]
package MySQL-server-5.5.28-1.linux2.6.i386 is already installed
[root@localhost local]#