forked from nicjansma/mysql-convert-latin1-to-utf8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php.template
35 lines (29 loc) · 882 Bytes
/
config.php.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/*
* template file for config
*/
// TODO: Pretend-mode -- if set to true, no SQL queries will be executed. Instead, they will only be echo'd
// to the console.
$pretend = false;
// TODO: Should SET and ENUM columns be processed?
$processEnums = false;
// TODO: The collation you want to convert the overall database to
$defaultCollation = 'utf8_unicode_ci';
// TODO Convert column collations and table defaults using this mapping
// latin1_swedish_ci is included since that's the MySQL default
$collationMap =
array(
'latin1_bin' => 'utf8_bin',
'latin1_general_ci' => 'utf8_unicode_ci',
'latin1_swedish_ci' => 'utf8_unicode_ci',
'utf8_general_ci' => 'utf8_unicode_ci',
);
// TODO: Database information
$dbHost = 'localhost';
$dbName = '';
$dbUser = '';
$dbPass = '';
if ($dbPass == '') {
echo "DB password:";
$dbPass = trim(fgets(STDIN));
};