Attempt to create database when there is no connection

This commit is contained in:
Daniel Winzen
2016-04-11 14:48:35 +02:00
parent e181af4df5
commit bc3bb8e3a4
4 changed files with 28 additions and 7 deletions

View File

@ -46,7 +46,7 @@ Optionally, you can install:
- a memcached server and the memcached extension and change the configuaration to use memcached. This will lessen the database load a bit.
- a MySQL or PostgreSQL server to use as an external database instead of SQLite
- the openssl extension for encryption of messages and notes in the database
When you have everything installed, you'll have to create a database and a user for the chat in mysql.
When you have everything installed and use MySQL or PostgreSQL, you'll have to create a database and a user for the chat.
Then edit the configuration at the bottom of the script to reflect the appropriate database settings and to modify the chat settings the way you like them.
Then copy the script to your web-server directory and call the script in your browser with a parameter like this:
http://(server)/(script-name).php?action=setup