MySQL :: MySQL 8.4 Reference Manual :: 2.3.6 Windows Platform Restrictions (original) (raw)

2.3.6 Windows Platform Restrictions

The following restrictions apply to use of MySQL on the Windows platform:

datadir="C:/私たちのプロジェクトのデータ"  

The same limitation applies to directory and file names referred to in SQL statements, such as the data file path name in LOAD DATA.

mysql> LOAD DATA INFILE 'C:/tmp/skr.txt' INTO TABLE skr;  
mysql> SELECT * INTO OUTFILE 'C:/tmp/skr.txt' FROM skr;  

Alternatively, you must double the \ character:

mysql> LOAD DATA INFILE 'C:\\tmp\\skr.txt' INTO TABLE skr;  
mysql> SELECT * INTO OUTFILE 'C:\\tmp\\skr.txt' FROM skr;  
C:\> mysqlbinlog binary_log_file | mysql --user=root  

If you have a problem applying the log and suspect that it is because of a ^Z /CHAR(24) character, you can use the following workaround:

C:\> mysqlbinlog binary_log_file --result-file=/tmp/bin.sql  
C:\> mysql --user=root --execute "source /tmp/bin.sql"  

The latter command also can be used to reliably read any SQL file that may contain binary data.