在Python中存储数据的最佳方式

时间:2022-12-08 12:01:43

I'm currently in the process of learning Python. I have a significant amount of experience with PHP and love using PHPMyAdmin to store information in the databases. The main reason I love PHPMyAdmin is because it is visual and incredibly easy to use.

我目前正在学习Python。我有很多PHP经验,喜欢使用PHPMyAdmin在数据库中存储信息。我喜欢PHPMyAdmin的主要原因是因为它是可视的并且非常容易使用。

I assumed that I would just be able to access the database of my normal website by setting the mysql.connector connect information to that of my website's database. However, I had no success with doing this.

我假设我可以通过将mysql.connector连接信息设置为我网站数据库的信息来访问我的普通网站的数据库。但是,我没有成功。

So basically my two questions are:

所以基本上我的两个问题是:

  1. Is there a great alternative to PHPMyAdmin for Python?
  2. PHP的PHPMyAdmin有一个很好的替代品吗?

  3. Is it possible to use Python to connect to my regular website's SQL database?
  4. 是否可以使用Python连接到我的常规网站的SQL数据库?

Thank you very much in advance!

非常感谢你提前!

1 个解决方案

#1


1  

  1. PHPMyAdmin is a database access tool independent of your project. You may use Python+Mysql in your project and PMA to edit data in DB.

    PHPMyAdmin是一个独立于您的项目的数据库访问工具。您可以在项目中使用Python + Mysql,在PMA中使用PMA编辑数据。

  2. Yes. Look for mysql extension.

    是。寻找mysql扩展。

#1


1  

  1. PHPMyAdmin is a database access tool independent of your project. You may use Python+Mysql in your project and PMA to edit data in DB.

    PHPMyAdmin是一个独立于您的项目的数据库访问工具。您可以在项目中使用Python + Mysql,在PMA中使用PMA编辑数据。

  2. Yes. Look for mysql extension.

    是。寻找mysql扩展。