- 论坛徽章:
- 1
|
solaris10自带了mysql4,不过要稍微设置一下才可以用,步骤如下:
1.创建用户
#id可自定,我用的1000
- shell>groupadd -g 1000 mysql
-
shell>useradd -u 1000 -g mysql -d /var/mysql -s /bin/false mysql
-
shell>passwd -l mysql #为了安全不设置密码和shell
2.启动mysql
用root用户运行
- shell#>/usr/sfw/sbin/mysqld_safe &
创建库和用户
- mysql>create database ftpuser;
-
mysql>grant all privileges on ftpuser.* to ftp@localhost identified by 'ftppass' with grant option;
-
mysql>grant all privileges on ftpuser.* to ftp@"%" identified by 'ftppass' with grant option;
这样就可以用ftpuser从远程登录了,root用户默认只能从本机登录
推荐一款软件Navicat,当前最新版为7.25,这是破解文件
Navicat 7.25 Cracked
3.关闭mysql
- bash-3.00# mysqladmin -u root -p shutdown
-
Enter password:
|
|