Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue with bottle-pymysql
#1
plugin = bottle_pymysql.Plugin( dbuser='nikos', dbpass='******', dbname='counters', charset = 'utf8', keyword='pymydb' )
app.install(plugin)

# calculate total hits for each and every webpage
pymydb.execute( '''SELECT url from pages ORDER by hits ASC''' )
When i try to run the script i get the error:

Output:
NameError("name 'pymydb' is not defined",)
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  How to access routes using Bottle Framework nikos 5 100 Feb-13-2019, 11:43 PM
Last Post: nikos
  unable to import pymysql IMuriel 3 228 Jan-08-2019, 08:56 PM
Last Post: IMuriel
  Passing a query value from a Bottle html template to a route with an encoding nikos 0 290 Sep-30-2018, 03:29 AM
Last Post: nikos
  Insert data to SQL through pymysql and flask iainstott 3 2,305 Oct-24-2017, 03:04 PM
Last Post: iainstott
  please explain Bottle runtime log Kebap 4 2,357 Sep-22-2016, 05:40 PM
Last Post: snippsat

Forum Jump:


Users browsing this thread: 1 Guest(s)