Preparation:
1. configure the firewall and enable port 80 and port 3306.Vi/etc/sysconfig/iptables-A input-m state -- state NEW-m tcp-p tcp -- dport 80-j ACCEPT # Allow port 80 to pass the Firewall-A input-m state -- state NEW-m tcp-p tcp -- dport 330
Solve the problem related to ERROR 1045 (28000) reported during database connection.
Install the mysql database on the Centos server today and run the connection command after installation.
mysql -uroot -p
And then throw the following command:
ERROR
Follow these steps to install mysql from the source code in linux:
yum updateyum upgradeyum install -y vim man wgetyum install -y gcc gcc-c++ gcc-g77 pcre-devel openssl-devel bison autoconf automake make libcurl-devel gd-devel zlib* fiex* libxml*
Install mysql and yummysql in yum
1. First, go to the mysql official website;
Web: http://dev.mysql.com/downloads/
Yum mysql repot options found:
2. Find the mysql yum repo address on the URL above:
Http://dev.mysql.com/downloads/repo/yum/
3.
========================================================== ==========This article isHeyuanhuiOriginal
Make sure that the original author information and original links of this article are complete and retained!
NN: khlerE-mail:Khler@163.comQQ: 233811
After several days of data migration, the database and table encoding were not set because of the Library's disgusting design.
Ah ~ It is not a good thing to wipe your ass.
# Install MySQL
# If MySQL cannot import gb2312 encoded data, it may be
Solution to MySQL remote connection failure (centos)(1) Stop the MySQL service first.#/Etc/init. d/mysqld stop(2) view the MySQL configuration file# Vi/etc/My. CNFPay special attention to the following two items: bind_address and skip_networking.
During server O & M, we usually use Zabbix for monitoring. Here we install and configure monit. When the process is detected to be stopped, the process can be automatically started.We recommend that you use the rpmforge source to install monit,
Nginx check whether the yum source has nginx
yum list nginxSince the official source does not have nginx, we need to find it by ourselves. This is the other system I am looking for. Please check the http://wiki.nginx.org/Install.
[nginx]name=nginx
1. Connect to MySQLFormat: mysql-H remote host address-u username-P press ENTEREnter the password:
Mysql-u root-P press ENTEREnter Password: enter the passwordMysql> enterExit command:> exit or Ctrl + d
Ii. MySQL management and authorization1.
[Root @ localhost HTML] # mysql-uroot-P
Enter password:
Error 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: No)
The password cannot be changed.
Use Service mysqld stop
Mysqld_safe -- skip-grant-tables &
Enter
Forget the root password of the original MYQL# /etc/init.d/mysqld Stop# Mysqld_safe--skip-grant-tables &&, which means running in the background, no longer running in the background, then open a terminal.# MySQLmysql> use mysql;mysql> UPDATE user
OS CentOS 6.5The required installation packages are as follows:Jre-7u67-linux-x64.rpmatlassian-confluence-5.4.4-x64.binmysql-connector-java-5.1.32-bin.jarconfluence5.1-crack.zipconflue NCE-5.4.4-LANGUAGE-PACK-ZH_CN.JAR:HTTP://PAN.BAIDU.COM/S/1I3D5RU1
Quick actiontab (Auto-padded, press two tab when multiple selections appear list) Ctrl+d (exit current operation) CTRL + C (Stop the currently executing command)System commandsShutdown–h now (shut down immediately) Shutdown–h 15:30 (15:30 minutes
After the MySQL service is initialized, use/etc/init.d/mysqld to start the MySQL service, error, and view its bug log error.log:150413 21:26:54 mysqld_safe mysqld from PID File/data/mysqldata/mysql.pid ended150413 21:30:19 Mysqld_safe starting
Method One: Use the Set password commandFirst, log in to MySQL?
1
mysql -u root -p
Then execute the Set password command?
1
setpassword for[email protected] = password(‘654321‘);
In the
[Email protected]/]# mysqldump--all-databases--user=root--password--master-data > Backupdatabase.sql #备份原数据库Enter Password:Mysqldump:Error:Binlogging on server not active #提示启动过日志[[email protected]/]# VI/ETC/MY.CNF # [mysqld] Add log-bin = mysql-bin
There was a problem with booting into MySQL this morning.# Mysql-uroot-penter Password:error 1045 (28000): Access denied for user ' root ' @ ' localhost ' (using password:yes) # MYSQ lmysql> use MySQL #不能用mysqlERROR 1044 (42000): Access denied for
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.