Advertisement
Guest User

Untitled

a guest
Aug 21st, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiomysql\connection.py", line 479, in _connect
  3. self.host_info = "socket %s:%d" % (self._host, self._port)
  4. TypeError: %d format: a number is required, not str
  5.  
  6. The above exception was the direct cause of the following exception:
  7.  
  8. Traceback (most recent call last):
  9. File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 50, in wrapped
  10. ret = yield from coro(*args, **kwargs)
  11. File "D:\XAMPP\mysql\DiscordBot\bot.py", line 35, in mtop
  12. conn = await aiomysql.connect(host=dbhost, port=dbport, user=dbuser, password=dbpass, db=dbname, loop=loop)
  13. File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiomysql\connection.py", line 77, in _connect
  14. await conn._connect()
  15. File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiomysql\connection.py", line 508, in _connect
  16. self._host) from e
  17. pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost'")
  18.  
  19. The above exception was the direct cause of the following exception:
  20.  
  21. Traceback (most recent call last):
  22. File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\bot.py", line 846, in process_commands
  23. yield from command.invoke(ctx)
  24. File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 374, in invoke
  25. yield from injected(*ctx.args, **ctx.kwargs)
  26. File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 54, in wrapped
  27. raise CommandInvokeError(e) from e
  28. 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