fix Table 'information_schema.SCHEMATA' doesn't exist
$sudo mysql_upgrade -u root -p --force
Software Developer, Programming, Web resources and entertaiment. Desarrollo de software, programaciĆ³n, recursos web y entretenimiento.
$sudo mysql_upgrade -u root -p --force
Error 1918. Error installing ODBC driver MySQL ODBC 5.3 ANSI Driver, ODBC error 13: The setup routines for the MySQL ODBC 5.3 ANSI Driver ODBC driver could not be loaded due to system error code 126: The
SHOW GLOBAL STATUS
SHOW VARIABLES LIKE '%size%';
SHOW GLOBAL VARIABLES LIKE '%size%';
SET GLOBAL join_buffer_size = 1024 * 1024 * 128 #128M
or
[mysqld]
join_buffer_size = 128M #default ~256K
References:
[0] Compute memory http://mysqlcalculator.com/
[1]
https://dba.stackexchange.com/questions/74693/how-to-break-table-into-two-without-losing-performance
join_buffer_size
[2] https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html
[3] Example tunning https://dba.stackexchange.com/questions/127862/tuning-mysql-variables-to-accommodate-high-load
[4] Query variables https://dev.mysql.com/doc/refman/8.0/en/show-variables.html
CREATE TABLE foo LIKE bar;
ALTER TABLE <tablename> CHANGE COLUMN <colname> <colname> VARCHAR(65536);
ALTER TABLE emp MODIFY COLUMN name VARCHAR(100);
Or use CHANGE, but that means you have to give the column name twice
(because CHANGE allows you to change the name of the column too).ALTER TABLE emp CHANGE COLUMN name name VARCHAR(100);
sudo lsof -i TCP:3306
netstat -lp | grep 3306
$systemctl status iptables.service
$service iptables status
La palabra clave INTERVAL
y el especificador type
no son sensibles a mayĆŗsculas.
La siguiente tabla muestra cĆ³mo se relacionan los argumentos type
y expr
:
type Value | Expected expr Format |
MICROSECOND | MICROSECONDS |
SECOND | SECONDS |
MINUTE | MINUTES |
HOUR | HOURS |
DAY | DAYS |
WEEK | WEEKS |
MONTH | MONTHS |
QUARTER | QUARTERS |
YEAR | YEARS |
SECOND_MICROSECOND | 'SECONDS.MICROSECONDS' |
MINUTE_MICROSECOND | 'MINUTES.MICROSECONDS' |
MINUTE_SECOND | 'MINUTES:SECONDS' |
HOUR_MICROSECOND | 'HOURS.MICROSECONDS' |
HOUR_SECOND | 'HOURS:MINUTES:SECONDS' |
HOUR_MINUTE | 'HOURS:MINUTES' |
DAY_MICROSECOND | 'DAYS.MICROSECONDS' |
DAY_SECOND | 'DAYS HOURS:MINUTES:SECONDS' |
DAY_MINUTE | 'DAYS HOURS:MINUTES' |
DAY_HOUR | 'DAYS HOURS' |
YEAR_MONTH | 'YEARS-MONTHS' |
[1] Diario/Seq https://apps.odoo.com/apps/modules/17.0/sequence_for_journal