Hi all, I’ve seen the same problem in the past. Setting a MySQL password in the NuPIC configuration is insufficient to allow NuPIC to connect to MySQL.
I’ve worked around this by setting my root MySQL password to null before running NuPIC, then setting it back when I am finished with NuPIC: [[ mysqladmin --user root —password=<real password> password “" ]] ..where <real password> should be replaced with, err, your real password. I really should look into why the MySQL password in the NuPIC configuration isn’t being respected... Regards, Dave -- http://about.me/david_wood > On Apr 22, 2015, at 08:11, Matthew Taylor <[email protected]> wrote: > > Jose, > > Yes, the problem is definitely MySQL. It's either not installed, not > running, or there is no "root" account with no password. You'll have > to figure out which. How you install MySQL depends on your OS, so I > suggest you google your OS and "MySQL installation" and see how to do > it. Then you'll need to figure out how to start MySQL. From my > experience, this is also different depending on your OS. Google is > your friend. :) > > Let me know how it goes. > > --------- > Matt Taylor > OS Community Flag-Bearer > Numenta > > > On Wed, Apr 22, 2015 at 6:58 AM, Jose Luis Contreras Santos > <[email protected]> wrote: >> Hello, >> >> I am facing some trouble with swarming, and I believe it's related to some >> misconfiguration of mysql. For testing purposes, I tried to run the >> OneHotGym tutorial, but I got this error (pastebin). >> >> When testing MySQL as stated in the wiki, I get an error too: >> >>> $ sudo python $NUPIC/examples/swarm/test_db.py >>> Retrieved the following settings from NuPIC configuration: >>> host : localhost >>> port : 3306 >>> user : root >>> passwd : <my password> >>> Traceback (most recent call last): >>> File "/home/jose/repos/nupic/examples/swarm/test_db.py", line 48, in >>> <module> >>> raise RuntimeError("Couldn't connect to the database." >>> RuntimeError: Couldn't connect to the database. Please ensure you have >>> MySQL >>> installed, running, and accessible using the NuPIC configuration >>> settings. >> >> >> I don't have too much experience with mysql, and I am having trouble trying >> to solve this error, any clue? >> >> Thank you very much, help is really appreciated! >> >> Jose Luis >> >> PS: I'm sorry that until this point my questions are only boring ones, but I >> am having quite a lot of problems before I can get the system to run. >
