Configuration of MySQL installation and remote connection configuration in Ubuntu 1. install MySQL in ubuntu and enter sudo apt-get install mysql-server in the ubuntu command line to install the mysql service, by default, mysql-client is
In mysqld section of my. cnf, add bind-address = 127.0.0.1. MySQL can only listen to a specific address.
Q: How can I specify that MySQL only listens to a specific address?
A: A common method is to add bind-address = 127.0.0.1 in mysqld section of
By default, mysql only supports localhost connection. Therefore, it is impossible for the remote server to enter an IP address to connect to your server. The following describes how to allow mysql to configure remote connection, for more information,
UbuntuMySQL remote win connection failure solution Ubuntu
BitsCN.com
Ubuntu MySQL remote win connection failure solution
The MySQL on Ubuntu10.04 runs the root @ ubuntu :~ # Sudo apt-get install mysql after mysql is installed
Start mysql root @
Whether goto statements should be used
A goto statement is also known as an unconditional transfer statement , which is usually used in conjunction with a conditional statement to change the flow of the program, allowing the program to go
Attackers usually search for remote security vulnerabilities to destroy resources on your network. Backtrack Linux is a security testing release that helps you check your network and servers and find Remote Security Vulnerabilities and potential
Add a user first (but also use the root user)
Format: grant permission on database name. Table name user @ login host identified by "User Password ";Grant select, update, insert, delete on *. * To zhxia @ '%' identified by '123 ';
Or all
Install MySql in Ubuntu and connect to the Internet, while tumysql is on the Internet.
Pure beginner tutorial.
1. Install mysql
apt-get install mysql-server mysql-client libmysqlclient15-dev
During the installation process, you will be
Mysql High Availability LVS + KEEPALIVE + MYSQL, lvskeepalive1. Architecture Diagram
Note:
(1) Mysql needs to remove the bind-address Configuration; otherwise, virtual ip access cannot be implemented.
(2) Disable all linux
Set Ubuntu to allow remote connection to MySQL
Set Ubuntu to allow remote connection to MySQL. For security reasons, MySql-Server only allows access from local machines (localhost, 127.0.0.1. this is no problem for the website architecture of both
LNMP environment setup-MySQL
1. Install MySQL
root@kallen:~# apt-get install mysql-server-5.5 mysql-client-5.5
2.Add Users
(1) Select a data tableStatement: use mysql;(2) Add a connection user account in the mysql user table:Here, do not directly
To enable remote connection to MySQL under Ubuntu Server, two steps are required:
The first step is to create a MySQL user that can be remotely connected
Mysql> grant all privileges on remote. * TO remote @ "%" identified by "remotepwd ";
Step 2:
MySQL startup failed, error message
Error 2002 (hy000): Can't connect to local MySQL server through socket '/var/run/mysqld. Sock' (2)
Solution: VI/etc/MySQL/My. CNF, FindBind-address:
Original bind-address = 127.0.0.1
Change to bind-address = 19
Sockets are also commonly referred to as sockets, which are used to connect to the server client and are a handle to a communication chain, where an application usually makes a request to the network through a socket or answers a network
Method One, directly uses phpMyAdmin to modify the user select *.* or enter the IP address in "permission" management.
Method Two, use the MySQL grant command to operate
For example: Allow NewUser users to link to the MySQL server from the ip:192.1
Ubuntu10.04 on the back of the MySQL, executed theroot@ubuntu:~ #sudo apt-get Install MySQLAfter installing Mysql-server
Start MySQLRoot@ubuntu:~#/etc/init.d/mysql start
Local connections can be entered into the database.root@ubuntu:~ #mysql-uroot-
Installation steps:First, installation by Apt methodDescription: This approach is fully referenced in the official tutorial https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/.Note: The version installed by APT is now the latest version, and
MySQL database installation defaults to local access only, if you need remote connection to do something according to different operating systemWindows:The newly installed MySQL cannot log on locally and is displayed as a 1045 errormysql#1045
(1) Environment introduction(2) The following configuration three servers are the same
Shutting down firewalls and SELinuxsystemctl disable firewalld systemctl stop firewalldsed -ri ‘/SELINUX=/cSELINUX=disabled‘ /etc/selinux/configsetenforce 0
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.