- 論壇徽章:
- 1
|
solaris10自帶了mysql4,不過要稍微設置一下才可以用,步驟如下:
1.創(chuàng)建用戶
#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 &
創(chuàng)建庫和用戶
- 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:
|
|