During the configuration of the MySQL database remote connection, the firewall and authorization have been done, but the connection still cannot be connected, and the error 1042 (hy000) is reported when the connection is found ): can't get hostname
1. MySQL connects to the local database. The username is "root" and the password is "123" (Note: there cannot be spaces between "-P" and "123)C: \> mysql-H localhost-u root-p1232. Connect MySQL to the remote database (192.168.0.201), Port "3306",
Install-win-source file Excellent installation command:
The basic commands that you must execute to install a MySQL SourceDistribution are:
shell> groupadd mysql shell> useradd-G mysql shell> tar-zxvf mysql-4.1.22.tar.gz shell> Cd mysql-4.1.22
Source installation overview ----------------------------------
The basic commands you must execute to install a MySQL SourceDistribution are:
Shell> groupadd MySQLShell> useradd-G MySQLShell> gunzip | mysql-VERSION.tar.gz | tar-xvf-Shell> Cd
Chinese garbled characters in the MySQL command line:
Cause of garbled characters: Chinese operating system command lineProgramThe default language is simplified Chinese, encoded as GBK. The database encoding for UTF-8, so the Chinese will be
After you reinstall the system, you don't need to reinstall mysql. You just need to add the MySQL service to the System Service. The specific steps are as follows:
Install MySQL Service
Create and edit a BAT file with the following content,
To prevent the mid-process output produced by semicolons, define a separator. The following is an official MySQL example: Use two dollar signs $ as the separator. The following sectionCodeIt is to create a prototype of a user-defined MySQL function,
Alter table: add, modify, and delete table columns, constraints, and other table definitions.
View column: DESC table name;
Alter table t_book Rename to BBB;
Add column: alter table table name Add column name varchar (30 );
Delete column:
Assume that MySQL is installed on the C: disk, the MySQL database username is root, the password is 123456, the database name is database_name, And the backup database is stored under the D: disk root directory, the name of the backup database is
Heidisql is a very powerful MYSQL client software.. It is GermanProgramAnsgar Becker and several open-source tools developed by Delphi programmers. To manage the database through heidisql, you should log on to the MySQL server with a valid
Document directory
Mysqldump Backup Tool
Cold backup:
The cold backup of the InnoDB Storage engine is very simple. You only need to back up frm files, shared tablespace files, independent tablespace files (*. IBD), and redo log files of the
Original article address:'Mysql' is not an internal or external command, nor is it a solution for running programs or batch processing files
Author:Yan peifeng
'Mysql' It is not an internal or external command, nor a workable program or batch file
// Create a database link,
Mysql_connect ("localhost", "mysql_user", "mysql_password") or die ("cocould not connect:". mysql_error ());
// Select a database
Mysql_select_db ("mydb ");
// Set the character set
Mysql_query ('set names utf8') or die
InnoDB and MyISAM are the two most commonly used table types in MySQL, each with its own advantages and disadvantages, depending on the specific application.The basic difference is that the MyISAM type does not support advanced processing such as
Install the first Binary source code ready, you can download from the image Sohu: http://mirrors.sohu.com/
My website is mysql-5.5.15-linux2.6-i686.tar.gz, Linux version 2.6.18-164. EL5
In actual work, the configurations of virtual machines may be
MySQL C-language DRIVER:
I am so tired today. My thoughts are unclear .;
Put it here first. Let's take a look at it tomorrow. There are still many things to be done tomorrow... the plan is coming into effect !!!!!!
I want to write a data entry to
Recently I have been reading PHP, new scholar, cainiao's saying,"
Today, a simple MySQL query function is provided,
Index.html query condition page:
search page decoration concept practical and simple simple design house type
The dump database table that recently used MySQL records the usage of this command:
Mysqldump backup:Mysqldump-u username-P password-H host database a-W "SQL condition" -- lock-all-tables> pathCase:Mysqldump-uroot-p1234-hlocalhost db1 A-W "ID in
1. First install mysql-server-5.1Sudo apt-Get install mysql-server-5.1 in this process, you need to enter the root user password, at this time do not enter, just press Enter. If you enter it, there will be problems, and I don't understand why. 2,
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service