Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
First time with mysql
#2
Without providing a server and a port, it assumes the server is 127.0.0.1 (your local machine) and the port is 3306. But you're not running a mysql server there (or if you are, it isn't reachable).

You need to put the server that is running the mysql in your connect() initializer.
Reply


Messages In This Thread
First time with mysql - by pascal111 - Sep-24-2021, 08:12 PM
RE: First time with mysql - by bowlofred - Sep-24-2021, 08:19 PM
RE: First time with mysql - by pascal111 - Sep-24-2021, 08:24 PM
RE: First time with mysql - by bowlofred - Sep-24-2021, 09:03 PM
RE: First time with mysql - by deanhystad - Sep-24-2021, 08:51 PM
RE: First time with mysql - by Pedroski55 - Sep-25-2021, 07:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mysql and mysql.connector error lostintime 2 848 Oct-03-2023, 10:25 PM
Last Post: lostintime
  Mysql error message: Lost connection to MySQL server during query tomtom 6 16,842 Feb-09-2022, 09:55 AM
Last Post: ibreeden
  Hard time trying to have clean MySQL to CSV program PierreSoulier 2 2,876 Jul-20-2018, 07:52 AM
Last Post: PierreSoulier

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020