加入收藏 | 设为首页 | 会员中心 | 我要投稿 常州站长网 (https://www.0519zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

Linux文件传输与mysql数据库安装

发布时间:2016-09-30 00:32:49 所属栏目:Linux 来源:站长网
导读:副标题#e# 文件传输工具使用 为了速成,关于linux系统的学习都先放一放,用到哪个知识点就查哪个,这里想在linux下装一些 服务练练手,最先想到的就是装个mysql数据库试试。 因为我用的是虚拟机下的linux,而且虚拟机还是精简版的。一直 琢磨着怎么把window

[root@localhost mysql]# ll  /data/mysql/       查看mysql目录下的权限
总用量 680
drwx------ 2 mysql root 4096 2月 27 22:16 mysql
-rw-rw---- 1 mysql mysql 15204 2月 27 22:16 mysql- bin.000001
-rw-rw---- 1 mysql mysql 639172 2月 27 22:16 mysql-bin.000002
-rw-rw---- 1 mysql mysql 38 2 月 27 22:16 mysql-bin.index
drwx------ 2 mysql root 4096 2月 27 22:16 test

[root@localhost mysql]# chown -R mysql.mysql  /data/mysql/        将data/mysql/下的文件都初始化成mysql用户权限 

六、启动mysql服务

[root@localhost bin]# cd /mysql/bin 进入mysql/bin目录下
[root@localhost bin]# ./mysqld_safe --user=mysql &  启动mysql服务
[root@localhost bin]# export PATH=$PATH:/usr/local/mysql/bin/ 设置mysql的PATH路径
[root@localhost bin]# mysql -uroot 直接mysql -uroot 启动
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 1
Server version: 5.0.87-log MySQL Community Server (GPL)
Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
mysql>

哈哈!成功进入mysql ,不容易啊,虽然步骤不多,但也花费了我不少时间。自我骄傲一下!

(编辑:常州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读