#How to connect your bot to a web database and how to create a random number + letters generator

4 messages · Page 1 of 1 (latest)

shell nacelle
shell pumiceBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

shell nacelle
empty walrus
#

``var con = mysql.createConnection({
host: "",
user: "",
password: "",
database: ""
});

con.connect(err =>{
if(err) throw err;
console.log("Connected to database");

});``