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
|
||||
<pre>
|
||||
CREATE DATABASE z
|
||||
CREATE USER 'z'@'%' IDENTIFIED BY 'legendofZ';
|
||||
GRANT ALL PRIVILEGES ON z.* TO 'z'@'%'
|
||||
CREATE DATABASE questlab
|
||||
CREATE USER 'questlab'@'localhost' IDENTIFIED BY 'questlab';
|
||||
GRANT ALL PRIVILEGES ON questlab.* TO 'questlab'@'localhost'
|
||||
</pre>
|
||||
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
|
||||
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)\
|
||||
`$ mysql -u z -p z < create.sql`
|
||||
1. Run script to import default values
|
||||
`$ mysql -u z -p z < import.sql`
|
||||
|
|
@ -78,10 +78,10 @@ supported languages (_do not change this!_)
|
|||
File source:configs/AppConfig.inc
|
||||
<pre>
|
||||
public static $database = array(
|
||||
'user' => 'z',
|
||||
'user' => 'questlab',
|
||||
'host' => 'localhost',
|
||||
'password' => 'legendofZ',
|
||||
'db' => 'z'
|
||||
'password' => 'questlab',
|
||||
'db' => 'questlab'
|
||||
);
|
||||
</pre>
|
||||
* user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue