SHOW GLOBAL VARIABLES LIKE '%log%';
There is no one.If you need one in /usr/local/mysql/support-files/
, and cp one to /etc/
- Checking : show variables like 'max_connections';
- Setting : set global max_connections=1000;
alter table `tablename` change fieldname fieldname varchar(500);
alter table `tablename` modify column fieldname int comment 'New comment';
create table picture_bak select * from picture;
alter table users AUTO_INCREMENT=123456;
RENAME TABLE old_table TO new_table
This action is very fast, even there are more than 70,000,000 records in the table according to my real experience.
SELECT SUM( data_length ) AS total
FROM information_schema.TABLES
WHERE information_schema.TABLES.TABLE_SCHEMA = 'dbname'
alter table table_name engine = InnoDB
show status;
show status like "Connection%";
show status where Value > 0;