Skip to content

can you add support for mysql please ? #26

Answered by krisdb2009
yoooby asked this question in Q&A
Discussion options

You must be logged in to vote

When you start the container, a database config file will be generated.

When generating a new Medoo class, you should be able to swap out the sqlite config for a config of your choice.

https://medoo.in/api/new

Keep in mind that the ./api/?db admin database config web page will no longer function.
You may also need to generate the database schema yourself in MySQL.

Most of the schema is generated in this file:

https://github.com/belowaverage-org/phonebook/blob/master/api/reqs/database.run.php

<?php
if(!isset($singlePointEntry)){http_response_code(403);exit;}
/* PhoneBook database settings */
$dbConfig = array(
	\'insertLoopLimit\' => 100 //Determines how many rows can be inserted at a time…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by krisdb2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #25 on April 14, 2021 13:24.