MySQL Workbench Not available
Previously used in the XAMPP MySQL components, the previous use of relatively simple, but only to import the database in the WEB directly after the use, did not find this component of the problem, today with MySQL
The MySQL database needs to be used in the project, and the following is how to access MySQL
Here I use the Mac to develop the first need to download MySQL
Address: http://dev.mysql.com/downloads/mysql/
Refer to this installation http://dev.mysql.
The simplest kind of joint query
The code is as follows
Copy Code
SELECT * FROM table1 N, table2 i WHERE n.itemid = I.itemid
Cases
Promotion Site Table promotion_addr field: Name,id
Telephone report
Generally we use mysqldump to back up the MySQL database and upload it to other backup machines. If the database is large, it may be slow when the backup is transmitted, so we try to make the backup file smaller.When writing an automatic backup
Sub-table
1, do MySQL cluster, for example: Use MySQL cluster, MySQL proxy,mysql Replication,drdb and so onSome people will ask MySQL cluster, what is the relationship between the root table? Although it is not in the actual sense of the table, but
MySQL default maximum number of connections is 100, you can use the following command on the MySQL client to view
Mysql> Show variables like ' max_connections ';
This command will result in output similar to the following:
+-----------------+-----
Workaround:
Start--> run-->cmd--> into the DOS command form: (if the command cannot be executed, place the MySQL installation path at the front of the system variable path)
1. Character set settings for fields in a database table. Show CREATE
Note--skip-grant-tables can turn off permission validation
1. Modify the MySQL configuration file under [mysqld] Add a line of configuration--skip-grant-tables, restart MySQL
2. Find MySQL Directory bin directory, run command line mysql-u root
3.
To do a functional requirement today, sort out the first 10 and inconsistent data from the table, such as the following values in table A:
The code is as follows
Copy Code
Mysql> select * from A;+----+----------+| ID |
For example, by using the title to retrieve a news library, the keyword may contain both Chinese and English, the following SQL statement:
Select Id,title,name from achech_com.news where title like '%a% '
Returns, some title fields are determined
1. View MySQL database server and database character set
Show variables like '%char% ';
2. View the character set supported by the currently installed MySQL.
Show CharSet;
3, set the code:
Modify MY.CNFVi/etc/my.cnfAdd under
To add a user account to the MySQL users table:
Instead of adding a user record directly using the INSERT statement, you can use Insert to appear:
Error 1364 (HY000): Field ' ssl_cipher ' doesn ' t have a default value. However, the earlier MySQL
Method uses the Reset script
The code is as follows
Copy Code
wget Http://xxxx/lnmp/ext/reset_mysql_root_password.sh;sh reset_mysql_root_password.sh
Suitable for LNMP or MySQL admin scripts in/etc/init.d/mysql
MySQL exceeded the maximum number of connections, I believe many people first reaction is to view the MySQL process, see if there is a slow query, of course, this approach is entirely correct!But most of the time the real problem isn't here.Today
Method One
Using mysqldump
The code is as follows
Copy Code
@echo offSet path=c:/"program Files"/winrar;%path%Set mysqlpath=c:/"program Files"/mysql/"MySQL Server 5.0"Set Bakpath=e:/mysql_bakSet Username=rootSet
installing MySQL
The screenshot used is the MySQL 5.5 installation process, and 5.6 not much difference.
1. Confirm the installation of the Microsoft. NET Framework v4.0 Framework
The following illustration suggests:
If the. Net Framework
Htmlspecialchars
Converts special characters into HTML format.
Syntax: string Htmlspecialchars (String string);
return value: string
function Type: data processing
Content
I. Software preparation:Php (5.1.2): http://www.php.netMysql (5.0.19): http://www.mysql.comZend optimizer (2.6.2): http://www.zend.comPhpmyadmin (2.8.0.2): http://www.phpmyadmin.netSuppose c: The system disk for your current operating system. If
1: First install apache: open the terminal (ctrl + Alt + t ),Enter the following command:Sudo apt-get install apache2To install,After installation, open your browser and enter localhost or http: // 127.0.0.1 in the address bar.If you see It works,
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