Frequently-used MySQL database commands: sharing bitsCN.com 1. frequently-used MySQL commands
Create database name; create a database
Use databasename; select database
Drop database name directly deletes the database, no reminder
Show tables;
Overview: recently, MySQLWorkbench remote management tool is used to remotely manage MySQL on a virtual machine. However, some problems are encountered during the configuration process. The following is an overview of this problem
How to prevent remote access from MySQL database bitsCN.com
Solution:
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 MySQL on The localhost
Modify field type altertable'table _ name' modifycolumn1_archar (50); add field altertable'table _ name' add1_archar (50); add PRIMARYKEY (primary key index) altertable'table _ name'a # Modify the field type
Alter table 'Table _ name' modify column
Set bitsCN.com for the remote access permission of the MySQL database.
1./cd
/Usr/local/mysql/bin
./Mysql-h localhost-u root
// You can access the MySQL server.
2. mysql> GRANT ALL
Privileges on *. * TO 'root' @ '%' WITH GRANT OPTION
// Grant data
How to configure the MySQL learning notes bitsCN. comMYSQL database:
Generally, you just need to modify my. ini and point it to the Database Directory.
Liu Yongfa (yongfa365) Blog has tested the simplest method:
1. net stop mysql
2. open C: Program
MySQLStudy-MySQL User and permission management MySQL server uses the MySQL permission table to control user access to the database. the MySQL permission table is stored in the mysql database and initialized by the mysql_install_db script. These
Common MySQL database commands. share bitsCN.com
1. MySQL common commands
Create database name; create a database
Use databasename; select database
Drop database name directly deletes the database, no reminder
Show tables; displays tables
Describe
UbuntuLinux: MySQL installation guide Ubuntu
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
I. How to start mysql in Ubuntu: etcinit. dsudomysqld 2. Add bingt to the user; mysql-urootmysqlgt; grant permission 1, permission 2,... Permission non
I. how to start mysql in Ubuntu:/etc/init. d/sudo mysqld 2. the user adds bingt; mysql-u
Since MySQL was acquired by Oracle, the community has been worried that MySQL may be shut down or some other reasons may cause MySQL support problems. So now many versions of the default database are transferred from MySQL to Mariadb. In addition,
When you remotely use the navicat for MYSQL client software to connect to MySQL DATA, 2003-can't connect to MySQL on '100. when 168.1.2 '(10061) error occurs, it is because MySQL does not allow remote connection.
The modification method is as
Usage of mysqltoolkit [memo] bitsCN.com
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.
Summary of the methods for remote access to MySQL database bitsCN.com:
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 in to mysql on the computer
Remote User connection to mysql authorization method: www.2cto.com run on the machine where mysql is installed: 1, d: \ mysql \ bin \> mysql-h localhost-u root // enter MySQL Server 2, mysql> grant all privileges on *. * TO 'root' @ '%' with grant
This article introduces how to remotely access the mysql database. If you need it, you can refer to it.
Solution:
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
1. MySQL Common commands
Create Database Name; Create a database
Use databasename; select database
Drop database name directly deletes the database, no reminder
Show tables; displays tables
Describe tablename; Detailed description of the table
Add
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,
First you need to download: mysql-connector-odbc-3.51.25-0.i386.rpm this is the client tool for connecting to mysql mysql-5.0.45.tar.gz Mysql database. Download as follows:
Wget http://tlbb-server-make.googlecode.com/files/mysql-5.0.45.tar.gz
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.