SmileFire

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About SmileFire

  • Rank
    I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello everyone, can you help with connecting to MYSQL? It connects on a socket, but I need to change somehow on connection on IP. Here's the code: local unix_socket, host = unix_socket, host local dbname, user, password = dbname, user, password local mainDB function connect() local startTick = getTickCount() mainDB = dbConnect("mysql", (unix_socket and "unix_socket="..unix_socket or "host="..host)..";dbname="..dbname, user, password) if (mainDB) then outputDebugString("[MYSQL] Connection: "..getTickCount()-startTick.." ms.") else outputDebugString("[MYSQL][ERROR] Connection failed!", 1) setTimer(connect, 5000, 1) end end connect()
  2. Всем привет, можете помочь с подключением к MYSQL? Оно подключается по сокету, но мне надо как-то поменять на подключение по порту. Вот код: local unix_socket, host = unix_socket, host local dbname, user, password = dbname, user, password local mainDB function connect() local startTick = getTickCount() mainDB = dbConnect("mysql", (unix_socket and "unix_socket="..unix_socket or "host="..host)..";dbname="..dbname, user, password) if (mainDB) then outputDebugString("[MYSQL] Connection: "..getTickCount()-startTick.." ms.") else outputDebugString("[MYSQL][ERROR] Connection failed!", 1) setTimer(connect, 5000, 1) end end connect()