The problem is that when you directly use MySQL c api to build an application, a connection can only execute a stored procedure once, no matter how free we use this connection again, there will be a prompt that we cannot execute qurry. I think such
1. Stop the running MySQL process
In Linux, run killall-term mysqld
In Windows, if it is written as a service, you can run: net stop mysql. If it is not loaded as a service, you can directly close it in the Process Manager.
2. Start MySql in
My personal practice is: phpMyAdmin exports ABC. SQL in UTF-8 insert mode
Ftp abc. SQL to server
SSH to server
Mysql-u ABC-P use KKK (database name, if not, create database kkk) set names 'utf8' source ABC. SQL
Note: I have seen the set Character
First, describe the configuration environment:
Operating System: Windows 2003 Standard SP2
PHP version: 5.2.5
MySQL version: 5
PhpMyAdmin: 2.11.6
1. First configure IIS and add new Server Extensions
Enter the phpisapi. dll file path and set the
My system is ubuntu6.06. The newly installed MySQL always has an error prompt when entering the MySQL tool:
# Mysql-uroot-P
Enter password:
Error 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: No)
Use the methods
I don't know how to solve it. So I installed MySQL on the server where his space is located to solve the problem. Today I have another problem. I can't install a MySQL on this server, search:
PHP remote connection to MySQL is slow. Sometimes it
Usage of MySQL time Conversion Function
Dayofweek (date)Returns the index of the week of the date (1 = Sunday, 2 = Monday ,...... 7 = Saturday ). These index values correspond to the ODBC standard.Mysql> select dayofweek (2007-10-31 );-> 4
The solution is to modify/etc/MySQL/My. CNF and add the following line:
Set-variable = max_connections = 500
Or add the parameter max_connections = 500 to the startup command.It is to modify the maximum number of connections, and then restart
CopyCode The Code is as follows:/* create a data table */
Create Table td_base_data (ID int (10) Not null auto_increment, userid int (10) default '0', primary key ('id') engine = MyISAM default charset = GBK;
Create Table td_base_data_20090527 (ID
I. Preface:
Version: okphp BBS v1.3 open-source Edition
Due to PHP and MySQL, injection of PHP + MySQL is more difficult than that of ASP, especially the construction of statements during injection, this article mainly analyzes some files in
Three solutions:
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 of localhost, and change the "host" entry in the
MySQL's built-in engine must be enough, but in some cases, other engines may be more suitable for completing tasks than they are used at hand. If you want to, you can even use MySQL ++ API to create your own database engine, just like hitting the
Author: Yang xinqi
Recently, three projects were started on hand, and the other two started from the bottom layer. One was started for a while and developed by a small team in a small city, there are no dedicated DBAs for database design and
CopyCode The Code is as follows: $ Memcached = array (// use the memcached multi-process to simulate multiple memcached servers. The cn En is the name of the memory server.
'Cn' => array ('192. 168.254.144 ', 192 ),
'En' => array ('192. 168.254.144 '
Software used: mysqlmigrationtool
The system prompts that the data is too large to be imported. Modify the max_allowed_packet of the my. CNF file to be greater than MB. In Windows, my. CNF may not be displayed. You need to enter the address:
MyISAM tables emphasize performance, and the execution speed is faster than that of InnoDB, but transactions are not supported. InnoDB provides advanced database functions such as external keys for transactions.
MyIASM is a new version of the
Method 1:
1. Table Structure
Use MySQL to generate the create script. Find the script to be exported and modify the Column Structure of the table created in the MySQL database according to the MySQL syntax.
2. Export table data
Use bcp on MSSQL to
Back up the database:Go to cmd
Export all databases: Enter mysqldump-u [Database User Name]-p-A> [backup file storage path]
Export data and data structure: input: mysqldump-u [database username]-p [name of the database to be backed up]> [storage
1. install php1) Create a New PHP folder on the D Drive and decompress php-5.2.0-win32.zip to D: \ PHP.
2) Find the PHP. ini-dist file in the D: \ php folder and copy it for backup. Rename the copied file to php-ini.
3) in the php. ini file, find
Working environment Windows Server 2003, MySQL Installation Directory D: \ MySQL, WinRAR installation directory C: \ Program Files \ WinRAR \ WinRAR.exe
The path of the backup data storage is E: \ data backup. After the backup data is ready, write
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