Chinaunix首页 | 论坛 | 博客
  • 博客访问: 412830
  • 博文数量: 77
  • 博客积分: 2303
  • 博客等级: 大尉
  • 技术积分: 808
  • 用 户 组: 普通用户
  • 注册时间: 2004-11-30 09:15
文章存档

2015年(1)

2013年(3)

2012年(2)

2011年(46)

2009年(4)

2008年(2)

2005年(12)

2004年(7)

我的朋友

分类: Mysql/postgreSQL

2011-02-22 14:14:18

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


3.关闭mysql
  1. bash-3.00# mysqladmin -u root -p shutdown
  2. Enter password:

阅读(865) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~