In MySQL, should I quote numbers or not?

MySQL is a lot like PHP, and will auto-convert data types as best it can. Since you’re working with an int field (left-hand side), it’ll try to transparently convert the right-hand-side of the argument into an int as well, so ‘9’ just becomes 9. Strictly speaking, the quotes are unnecessary, and force MySQL to do … Read more

The total number of locks exceeds the lock table size

This issue can be resolved by setting the higher values for the MySQL variable innodb_buffer_pool_size. The default value for innodb_buffer_pool_size will be 8,388,608. To change the settings value for innodb_buffer_pool_size please see the below set. Locate the file my.cnf from the server. For Linux servers this will be mostly at /etc/my.cnf Add the line innodb_buffer_pool_size=64MB … Read more

MySQL Cross Server Select Query

how about using federated tables on one of the servers? create the federated tables based on the remote tables you will use in the query and just run your query as if your database was all local. example below from MySQL site The procedure for using FEDERATED tables is very simple. Normally, you have two … Read more