Hi all,

Yes, the use of a nupic-site.xml is working again. There were some issues with 
this in the past, but it looks like Matt fixed them back in December.[1][2]

Regards,
Dave
--
http://about.me/david_wood

[1] 
https://github.com/numenta/nupic/commit/412da4c33ce0ef4cd39ef59cfafeaba6bd084021
[2] 
https://github.com/numenta/nupic/commit/a4102b48493d6d143610bf0d12357a7cdb88b291


> On Apr 22, 2015, at 09:41, Matthew Taylor <[email protected]> wrote:
> 
> Or, you can create a local configuration file called "nupic-site.xml"
> or edit the existing "nupic-default.xml" with the mysql credentials
> you'd like to use. That will keep you from using a root user and no
> password.
> 
> See: https://github.com/numenta/nupic/wiki/Running-Swarms#prerequisites
> 
> ---------
> Matt Taylor
> OS Community Flag-Bearer
> Numenta
> 
> 
> On Wed, Apr 22, 2015 at 8:35 AM, David Wood <[email protected]> wrote:
>> 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.
>>> 
>> 
>> 
> 


Reply via email to