Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no shares table, Have you imported the schema? #71

Open
sunggeorge opened this issue Dec 10, 2013 · 6 comments
Open

There is no shares table, Have you imported the schema? #71

sunggeorge opened this issue Dec 10, 2013 · 6 comments

Comments

@sunggeorge
Copy link

Maybe a newbie question.

I get captioned message when I run:
twistd -ny launcher.tac

I tried creating the database in config.py first but still get this msg.

I don't know if there should be any thing done to mysql.

Hope someone can help me. Thanks!
screenhunter_26 dec 10 23 52

@TheSerapher
Copy link

If you are using MPOS, import that SQL supplied.

@SpeedMiners
Copy link

Hi Serapher - Imported the MPOS SQL and I am getting that error too - Am happy for you to log into my server if you want to check it out, let me know!

@SpeedMiners
Copy link

Here is the code that's causing the problem

self.execute(
"""
SELECT COUNT(*)
FROM INFORMATION_SCHEMA.STATISTICS
WHERE table_schema = %(schema)s
AND table_name = 'shares'
""",
{
"schema": getattr(settings, 'DB_MYSQL_DBNAME')
}
)

    data = self.dbc.fetchone()

    if data[0] <= 0:
       raise Exception("There is no shares table. Have you imported the sch

However, I do have the database that it is mentioning I do not..

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mpos |
| mysql |
| performance_schema |
| test |
+--------------------+
5 rows in set (0.01 sec)

Have I installed it incorrectly do you think?

@TheSerapher
Copy link

Point Stratum to the right database with proper credentials.

I don't supply customer support. It's an easy thing to setup if you know what to do.

Cheers,
Sebastian

On 15.12.2013, at 04:56, SpeedMiners [email protected] wrote:

Hi Serapher - Imported the MPOS SQL and I am getting that error too - Am happy for you to log into my server if you want to check it out, let me know!


Reply to this email directly or view it on GitHub.

@SpeedMiners
Copy link

Completely understand - I will dig a little deeper and see what I can find - Thanks for your help, Sebastian :)

I appreciate your work on this project!

@SpeedMiners
Copy link

Just to let you guys know I fixed this - My database was empty! Check your database and ensure you've imported all the MPOS tables :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants