Update database settings
parent
3330f9a648
commit
ba8876e23b
1 changed files with 8 additions and 8 deletions
|
|
@ -26,12 +26,12 @@
|
||||||
|
|
||||||
1. Create a new database
|
1. Create a new database
|
||||||
<pre>
|
<pre>
|
||||||
CREATE DATABASE z
|
CREATE DATABASE questlab
|
||||||
CREATE USER 'z'@'%' IDENTIFIED BY 'legendofZ';
|
CREATE USER 'questlab'@'localhost' IDENTIFIED BY 'questlab';
|
||||||
GRANT ALL PRIVILEGES ON z.* TO 'z'@'%'
|
GRANT ALL PRIVILEGES ON questlab.* TO 'questlab'@'localhost'
|
||||||
</pre>
|
</pre>
|
||||||
1. Run script to create tables
|
1. Run script to create tables\
|
||||||
The script creates triggers so either give the user SUPER "privileges":https://mariadb.com/kb/en/mariadb/grant/ or enable "log_bin_trust_function_creators":https://mariadb.com/kb/en/mariadb/replication-and-binary-log-server-system-variables/#log_bin_trust_function_creators
|
The script creates triggers so either give the user SUPER [privileges](https://mariadb.com/kb/en/mariadb/grant/) or enable [log_bin_trust_function_creators](https://mariadb.com/kb/en/mariadb/replication-and-binary-log-server-system-variables/#log_bin_trust_function_creators)\
|
||||||
`$ mysql -u z -p z < create.sql`
|
`$ mysql -u z -p z < create.sql`
|
||||||
1. Run script to import default values
|
1. Run script to import default values
|
||||||
`$ mysql -u z -p z < import.sql`
|
`$ mysql -u z -p z < import.sql`
|
||||||
|
|
@ -78,10 +78,10 @@ supported languages (_do not change this!_)
|
||||||
File source:configs/AppConfig.inc
|
File source:configs/AppConfig.inc
|
||||||
<pre>
|
<pre>
|
||||||
public static $database = array(
|
public static $database = array(
|
||||||
'user' => 'z',
|
'user' => 'questlab',
|
||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
'password' => 'legendofZ',
|
'password' => 'questlab',
|
||||||
'db' => 'z'
|
'db' => 'questlab'
|
||||||
);
|
);
|
||||||
</pre>
|
</pre>
|
||||||
* user
|
* user
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue