mysql> CREATE TABLE without_pk (col1 VARCHAR(10)); ERROR 3750 (HY000): Unable to create or change a table without a primary key, when the system variable 'sql_require_primary_key' is set. Add a primary key to the table or unset this variable to avoid this message. Note that tables without a primary key can cause performance problems in row-based replication, so please consult your DBA before changing this setting.
• (LOCAL句 なしのLD は 影響なし 🙆) 21 mysql> LOAD DATA LOCAL INFILE 'file.csv' INTO TABLE tbl SET name=@1, created_at=@2; ERROR 1148 (42000): The used command is not allowed with this MySQL version ERROR 3948 (42000): Loading local data is disabled; this must be enabled on both the client and server sides
LOAD DATA LOCAL INFILE 'file.csv' INTO TABLE tbl; ERROR 3948 (42000): Loading local data is disabled; this must be enabled on both the client and server sides $ mysql –-infile-local=1 mysql> LOAD DATA LOCAL INFILE 'file.csv' INTO TABLE tbl; Query OK, 0 rows affected, 2 warnings (0.00 sec) Records: 2 Deleted: 0 Skipped: 2 Warnings: 2
v.5.7 v.8.0 OFF OFF ON [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
- mysqld got signal 11 ; Most likely, you have hit a bug, but this error can also be caused by malfunctioning hardware. Thread pointer: 0x0 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... stack_bottom = 0 thread_stack 0x46000 /usr/sbin/mysqld(my_print_stacktrace(unsigned char const*, unsigned long)+0x43) [0x4402af3] <snip>
mysql -P3307 -uappuser -h db01 ERROR 1227 (42000): Access denied; you need (at least one of) the SERVICE_CONNECTION_ADMIN privilege(s) for this operation $ mysql -P3306 -uroot -h db01 ERROR 1040 (HY000): Too many connections $ mysql -P3307 -uroot -h db01 mysql>
root@ʼlocalhost` OK OK root@ʼ127.0.01` NG OK skip_name_resolve = ON root@ʼlocalhost` OK NG root@ʼ127.0.0.1` NG OK 46 • skip_name_resolve=ONの場合admin_addressで接続する⽤のユーザが必要 • admin_address に ソケット接続を許すオプションほしかった・・・
sql-require-primary-key OFF ON local-infile OFF OFF explicit_defaults_for_timestamp ON ON innodb-buffer-pool-in-core-file ON OFF admin_address - 127.0.0.1 MySQL 8.0 パラメータまとめ