I have a mysql database on the server and remotely access it. I don't want to announce the root account. So I created a demo account that allows the demo account to access the shandong database in the mysql database anywhere.
Solution 1:
Run the
The installation of unixodbc is really depressing over the past few days. Basically, every day, QT and unixodbc are compiled and installed, and sometimes some inexplicable errors may occur. First of all, I admit that I am not familiar with Linux,
How to download and install the MySQL database:
: Http://dev.mysql.com/downloads/. download the package and install it in double steps.
========================================================== ===== How to configure the MySQL database:
MySQL has no password by default. Enter mysql-u root to enter MySQL.
1. initialize the root password
Enter the MySQL database
Mysql> Update user SET Password = PASSWORD ('000000') where user = 'root ';
2. To allow remote access to MySQL, you
Install MySQL
Sudo apt-Get install mysql-Server
This should be very simple, and I don't think there is much problem with the installation, so I will not talk about it much. Let's talk about the configuration below.
Configure MySQL
Note: In
Install MySQL
Sudo apt-Get install mysql-Server
This should be very simple, and I don't think there is much problem with the installation, so I will not talk about it much. Let's talk about the configuration below.
Configure MySQL
Note: In ubuntu,
Apache Ambari is a Web-based tool that supports the supply, management, and monitoring of Apache Hadoop clusters. Ambari currently supports most Hadoop components, including HDFS, MapReduce, Hive, Pig, Hbase, Zookeper, Sqoop, and Hcatalog. Apache
The first step:Composer Create-project Symfony/framework-standard-edition your project name;After creating this prototype, I execute PHP bin/console Server:run, can run up;So now you need to connect to the database: My database is PostgreSQLWrite a
When using Docker we often encounter an application where I need two or more containers, some of which require services from other containers. For example, we need a container to provide the MySQL database service, while the other two containers are
A. Downloadhttp://dev.mysql.com/downloads/mysql/Select the corresponding version, select "Linux-generic" hereTake the 64-bit system as an example, here are two files to
Ubuntu 14 installation MySQL GuideInstall MySQLsudo apt-get install Mysql-serverThis should be very simple, and I think everyone in the installation is not too much problem, so it is not much to say, the following we talk about
Format: Grant Select on database. * To User name @ login host identified by "password"
Example 1, add a user test1 password for ABC, so that he can log on any host, and all databases have query, insert, modify, and delete permissions. First connect
Warning:mysql_connect () [Function.mysql-connect]: Can ' t connect to the local MySQL server through socket '/var/lib/mysql/mys Ql.sock ' (2) in/home/content/63/8523763/html/deng/fqlbnet/admin/inc/db.php on line 34Can ' t connect to the local MySQL
First, the main library, from the Library synchronization test
[Root@master-mysql ~]#/usr/local/mysql/bin/mysql-uroot-pMysql> Show Processlist\gState:master has sent all binlog to slave; Waiting for Binlog to is updatedmysql> CREATE DATABASE
This error occurs if you want to connect to your MySQL:
ERROR 1130:host ' 192.168.33.60 ' isn't allowed to connect to this MySQL server
Workaround:
1. Change Table method. Your account may not be allowed to log in remotely, only in localhost.
Workaround:
1, Change Table method. Your account may not be allowed to log in remotely, only in localhost. This time as long as the computer in localhost, login mysql, change the "MySQL" database in the "User" table in the "host" item, from
Create a new user under 1,mysql
Grammar:
1.create user username identified by ' password ';
Example: Create user Xiaogang identified by ' 123456 ';
The newly created user, by default, does not have any permissions.
2. How to assign permissions
The simplest sentence
The code is as follows
Copy Code
>>grant all privileges on *.* to root@ "%" identified by "passwd";>>flush privileges;
Where "%" means that any host can log on to the server remotely. If
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.