Comments - Could you suggest a connector which can work for Django and mariaDB?

7 years, 9 months ago CP Wen

I removed mariadb-server first. Then I followed your steps. It works. Yes.

I followed the installation in your web site before. Could you tell me that why it doesn't have "sudo apt-get install mariadb-server" in your steps? Your web site has the installation step.

And I had removed the mariadb-server. I wonder why it can still work?

 
7 years, 9 months ago Bryan Alsdorf

My steps didn't have mariadb-server as my test environment was connecting to an instance of MariaDB on another machine.

If you are running MariaDB on the same machine you will need to install mariadb-server, otherwise you do not need it.

 
7 years, 9 months ago CP Wen

I have some summaries for the question.

1. Re-install MariaDB to solve the problem that can't install the package "libmariadbclient-dev". "libmariadbclient-dev" is prerequisite for mysqlclient package. 2. PyMySQL can work well in the "fractional seconds" function with MySQL, not MariaDB. 3. I use mysqlclient in place of PyMySQL. Because mysqlclient can work well with MariaDB, and I think it is easier to use.

Thanks a lot for all your help, Bryan.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.