WarrenIndLLC 0 Posted January 24, 2014 Report Share Posted January 24, 2014 Hey guys, So, I'm trying to pull the first row of DB info to my bot. It connects to the DB just fine and I'm pretty sure I have the right code in, it just continually gives me blank results plugin command("DatabaseCommands.dll", "connect to database", "mysql:server=***.**.***.**;uid=******_push; pwd=*********; database=******_push; port=3306; pooling=false") { plugin command("DatabaseCommands.dll", "query with results", "SELECT * FROM \'sendpush\' LIMIT 1", &results)} When I test run that through uBot I get a blank return of results. Anybody have an idea of what it could be? Thanks Quote Link to post Share on other sites
vonnch 1 Posted January 25, 2014 Report Share Posted January 25, 2014 I got nothing on top of my head for this. Have you tried checking the logs to see if it points you to something? Quote Link to post Share on other sites
the_way 52 Posted January 28, 2014 Report Share Posted January 28, 2014 use: SELECT COUNT(*) FROM tablename This will give you a count of the number of rows in the DB. You should use that first to see if you can make the connection. Quote Link to post Share on other sites
blumi40 222 Posted January 29, 2014 Report Share Posted January 29, 2014 SELECT TABLES should show u all the Tables of your Database. If this dont work check your MySQL User and your Connection Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.