不做第二个别人,永远做第一个自己。
发布时间:2014-04-25 11:34:29
vim /etc/yum.repos.d/MariaDB.repo[mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/centos5-x86 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1yum -y install MariaDB-server MariaDB-client[root@ip-172-31-21-238 .........【阅读全文】
发布时间: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直接.........【阅读全文】