免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1052 | 回复: 0
打印 上一主题 下一主题

solaris10 x86 版 自带mysql4的启用方法 [复制链接]

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-19 13:55 |只看该作者 |倒序浏览
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,这是破解文件
Navicat 7.25 Cracked

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

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP