Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiomysql\connection.py", line 479, in _connect
- self.host_info = "socket %s:%d" % (self._host, self._port)
- TypeError: %d format: a number is required, not str
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 50, in wrapped
- ret = yield from coro(*args, **kwargs)
- File "D:\XAMPP\mysql\DiscordBot\bot.py", line 35, in mtop
- conn = await aiomysql.connect(host=dbhost, port=dbport, user=dbuser, password=dbpass, db=dbname, loop=loop)
- File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiomysql\connection.py", line 77, in _connect
- await conn._connect()
- File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiomysql\connection.py", line 508, in _connect
- self._host) from e
- pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost'")
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\bot.py", line 846, in process_commands
- yield from command.invoke(ctx)
- File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 374, in invoke
- yield from injected(*ctx.args, **ctx.kwargs)
- File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 54, in wrapped
- raise CommandInvokeError(e) from e
- discord.ext.commands.errors.CommandInvokeError: Command raised an exception: OperationalError: (2003, "Can't connect to MySQL server on 'localhost'")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement