-
-
Save Megic/4195474 to your computer and use it in GitHub Desktop.
Centos:nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 服务自启动. | |
| [root@localhost ~]# chkconfig --list 显示开机可以自动启动的服务 | |
| [root@localhost ~]# chkconfig --add *** 添加开机自动启动***服务 | |
| [root@localhost ~]# chkconfig --del *** 删除开机自动启动***服务 | |
| 1.新建用户。 | |
| //登录MYSQL | |
| @>mysql -u root -p | |
| @>密码 | |
| //创建用户 | |
| mysql> insert into mysql.user(Host,User,Password) values("localhost","phplamp",password("1234")); | |
| //刷新系统权限表 | |
| mysql>flush privileges; | |
| 这样就创建了一个名为:phplamp 密码为:1234 的用户。 | |
| //登录MYSQL(有ROOT权限)。我里我以ROOT身份登录. | |
| @>mysql -u root -p | |
| @>密码 | |
| //首先为用户创建一个数据库(phplampDB) | |
| mysql>create database phplampDB; | |
| //授权phplamp用户拥有phplamp数据库的所有权限。 | |
| >grant all privileges on phplampDB.* to phplamp@localhost identified by '1234'; | |
| //刷新系统权限表 | |
| mysql>flush privileges; | |
| mysql>其它操作 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment