Common MySql commands and basic mysql commands
Common MySQL database commands
1. MySQL Common commands
Create database name; create a database
Use databasename; select database
Drop database name directly deletes the database, no reminder
Show
Common commands for MySQL database operations and Common commands for mysql
Common commands for MySQL database operationsDOS Connection database1. Install MySQL to configure the environment2. Run the cmd command. net start mysql3. Find the root
Mysql database commands
Common MySQL commands
1. Connect to MySQL
Format: mysql-h host address-u user name-p User Password
1. Example 1: connect to MYSQL on the local machine.
First, open the DOS window, enter the directory mysqlbin, then type the
This article describes in detail the initial settings after installing the MySQL database in Ubuntu. 1. it should be easy to install MySQL, and I don't think there is much problem in the installation, so I will not talk about it much. Next let's
Installing Mysql-5.5.9 in Linux (40) creating users and user groups
Groupadd mysql
Useradd-g mysql
Download:Bison-2.5.tar.gzCmake-2.8.4.tar.gzM4-1.4.9.tar.gzMake-3.82.tar.gzMysql-5.5.9.tar.gzNcurses-devel-5.7-3.20090208.el6.i686.rpm
Mysql: isnotallowedtoconnecttothisMySQLserver This error occurs when you want to connect to your mysql:
ERROR 1130: Host '192. 168.1.3 'is not allowed to connect to this MySQL server
Solution:
1. Change the table. It may be that your account
Mysql creates a user to remotely log on to bitsCN.com
Mysql New user remote login
By default, users created in MYSQL cannot log on remotely.
You can log on to mysql using the root account and run the following command.
Grant all privileges
Add a new user to mysql and assign the permission bitsCN.com 1. start mysql in Ubuntu:
/Etc/init. d/sudo mysqld
2. add a user
Bin> mysql-u root
Mysql> grant permission 1, permission 2,... permission n on database name. table name to user name @
1. mysql service mysqld: unrecognizedservice solution yuminstallmysql-server2, error: java. SQL. SQLException: null, messagefromserver: solution GRANTALLPRIVILEGESON *.*
1. mysql service mysqld: unrecognized service cannot be found. Solution: yum
What should I do if the MySQL database cannot be accessed remotely? This article provides three solutions
What should I do if the MySQL database cannot be accessed remotely? This article provides three solutions
Three solutions:
1. Change the
1. Change the table method. It may be that your account is not allowed to log on remotely, but only on localhost. At this time, you only need to log on to the computer of localhost. After logging on to mysql, change the host entry in the user table
Installing MySQL sudo apt-get install mysql-server should be simple, and I don't think there is much problem with installation, so I will not talk about it much. Let's talk about the configuration below. Configure MySQL. Note that in Ubuntu, MySQL
When mysql 1130 is remotely connected through Navicat for MySQL, the ERROR code is 1130, ERROR 1130: Host xxx. xxx. xxx. xxx is not allowed to connect to this MySQL server is unable to give remote connection to the user permission problem
I. how to start mysql in Ubuntu:/etc/init. d/sudo mysqld 2. add bin> mysql-u rootmysql> grant permission 1, permission 2 ,... permission n on Database Name. table name to username @ user address identified by 'Connection password'; permission 1,
By default, mysql does not support remote connection. This is also for security consideration. It is very serious to give your database to others.
For security considerations, the root account can only be accessed locally, but the root remote access
Mysql toolkit is a small plug-in used to monitor and analyze databases. It is usually used to call perl to analyze and compare the current environment and database. It is worth learning.
Install [cpp] for MySQL for mac 1. Install mysql [cpp] 1. mysql http://dev.mysql.com/downloads/mysql/ My machine is mac 10.8; so use the mysql-5.6.10-osx10.7-x86_64.dmg installation package; 2. The installation package is located in the hard disk
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.