不做第二个别人,永远做第一个自己。
发布时间:2014-04-10 11:19:27
7] Install MySQL for Database Server[root@cloud01 ~]# yum -y install mysql-serve[root@cloud01 ~]# /etc/rc.d/init.d/mysqld startInitializing MySQL database: Installing MySQL system tables…OKFilling help tables… OKTo start mysqld at boot time you have to copysupport-files/mysql.server to th.........【阅读全文】
发布时间:2014-04-10 11:19:00
第一:首先要把mysqld停止service mysqld stop第二:启动mysql,但是要跳过权限表/usr/local/mysql/bin/mysqld_safe –skip-grant-tables &第三:进去mysql,并修改密码mysql -u rootmysql>use mysql;mysql>update set user password=password("new_pass") where user="root";mysql>flush privileges;mysq.........【阅读全文】
发布时间:2014-04-10 11:18:40
备份mysql备份mysql数据库的命令;mysqldump -u$username -p$password $databasename > bak_file.sql备份mysql数据库为带删除表的格式(能够让改备份覆盖之前备份的数据库,无须手动删除之前已备份数据库文件)mysqldump -add-drop-table -u$username -p$password $databasename > bak_fiel.sql直接.........【阅读全文】
发布时间:2014-04-10 11:17:22
配置好Nginx现在在添加一个virtual host (xiaoyuan.com)配置如下:# vim /etc/nginx/conf.d/virtual.conf # 在最下面添加server { listen 80; server_name www.xiaoyuan.com; location / { root /usr/share/nginx/xiaoyuan.com; //这路径是网站的路径; .........【阅读全文】