A tiny script to test MySql db connection and print a proper message.if can connect to Database return 0,if not return 1.
PyMySQL==1.0.2
SQLAlchemy==1.4.22
-
get a clone from it by 'git clone https://github.com/mi-alkhamis/DB-connection-test.git '
-
set
DWS_MYSQL_DATABASE_URI
envoronmnet variable in this formatDWS_MYSQL_DATABASE_URI=USER:PASS@URI:PORT/DB-NAME
for exampleDWS_MYSQL_DATABASE_URI=sql4429170:[email protected]:3306/sql4429170
-
run and enjoy it ๐
- Read the issues, fork the project and do a Pull Request.
- Request a new topic creating a New issue with the enhancement tag.
- Find any kind of errors in the cheat sheet and - create a New issue with the details or fork the - project and do a Pull Request.
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
@dwsclass dws-dev-007-python