2012年9月19日

mysql管理

摘要: 修改密码:mysqladmin -u用户名 -p旧密码 password 新密码(因为开始时root没有密码,所以-p旧密码一项就可以省略了) 阅读全文

posted @ 2012-09-19 18:31 巧克力bean 阅读(120) 评论(0) 推荐(0)

mysql 允许root从远程登录

摘要: 1。改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 “mysql” 数据库里的 “user” 表里的 “host” 项,从“localhost”改称“%”mysql -u root -pvmwaremysql>use mysql;mysql>update user set host = ‘%’ where user = ‘root’;mysql>select host, user from user; 2. 授权法。例如,你想myuser使用mypassword从任何主机连接到mysql服务 阅读全文

posted @ 2012-09-19 18:30 巧克力bean 阅读(307) 评论(0) 推荐(0)

mysql数据备份

摘要: *导出整个数据库 mysqldump -u 用户名 -p 数据库名 > 导出的文件名 mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql*导出一个表 mysqldump -u 用户名 -p 数据库名 表名> 导出的文件名 mysqldump -u wcnc -p smgp_apps_wcnc users> wcnc_users.sql*导出一个数据库结构 mysqldump -u wcnc -p -d --add-drop-table smgp_apps_wcnc >d:\wcnc_db.sql -d 没有数据 --add 阅读全文

posted @ 2012-09-19 18:27 巧克力bean 阅读(113) 评论(0) 推荐(0)

mysql安装

摘要: 查看有没有安装包# yum list mysql安装mysql客户端# yum install mysql# yum list mysql-server安装mysql 服务器端# yum install mysql-server安装过后需要启动mysql服务,我们可以通过一下两总方法:1、service mysqld start2、/etc/init.d/mysqld start启动过后需要给mysql创建一个root管理员:# mysqladmin -u root password 123456后我们就可以通过以下连接mysql,进入mysql命令行了:# mysql -u root -p输 阅读全文

posted @ 2012-09-19 18:25 巧克力bean 阅读(188) 评论(0) 推荐(0)

nginx 安装

摘要: ./configure --prefix=/opt/nginx-1.2.3 --with-pcre --without-http_uwsgi_module --without-http_ssi_module --without-http_split_clients_module --without-http_scgi_module上编译安照 nginx-1.1.16 出错,提示:error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 阅读全文

posted @ 2012-09-19 18:17 巧克力bean 阅读(188) 评论(0) 推荐(0)

linux用户管理

摘要: 修改密码:passwd用户名添加用户:useradd 用户名 删除用户:userdel 用户名 阅读全文

posted @ 2012-09-19 18:09 巧克力bean 阅读(126) 评论(0) 推荐(0)

导航