Go to advanced search

by RDK
Sat May 18, 2019 7:35 am
Forum: Troubleshooting
Topic: Windows 2003 server can not connect to SAMBA shares
Replies: 4
Views: 89

Re: Windows 2003 server can not connect to SAMBA shares

Thanks folks. This is not a very high priority, so I will proceed with lots of caution and backups.....RDK
by RDK
Fri May 17, 2019 5:31 pm
Forum: Troubleshooting
Topic: Windows 2003 server can not connect to SAMBA shares
Replies: 4
Views: 89

Windows 2003 server can not connect to SAMBA shares

There is a similar posting on this issue but for Window 8 ( https://www.raspberrypi.org/forums/viewtopic.php?p=660752 ). I have and/or have had several Windows 7, Vista and now Window 10 Pro and Windows Family and all have been able to connect to my Pi's without issues. The Pi's are all set up with ...
by RDK
Sat May 11, 2019 3:19 pm
Forum: Beginners
Topic: Python Access using mysqlbd not working
Replies: 4
Views: 121

Re: Python Access using mysqlbd not working

Yes, having to find and then match case for a library is a bit annoying. But, I'm now working with either MySQLdb or pymysql for using a DictCursor. Unlike pymysql and mysql.connector which use database for specifying the database name, MySQLdb uses db . Another thing which slowed me down. Oh well, ...
by RDK
Sat May 11, 2019 4:44 am
Forum: Beginners
Topic: Python Access using mysqlbd not working
Replies: 4
Views: 121

Re: Python Access using mysqlbd not working

Thanks for the interest. I'm using Python 2.7. This is a fresh install of Stretch on an Raspberry Pi v3. I have installed the following: sudo apt-get install mariadb-server sudo apt-get install python-mysqldb sudo apt-get -y install python-mysql.connector sudo apt-get install libmariadbclient-dev su...
by RDK
Thu May 09, 2019 5:10 pm
Forum: Beginners
Topic: Python Access using mysqlbd not working
Replies: 4
Views: 121

Python Access using mysqlbd not working

I'm having a world of problems using the Python mysqldb libraries in Stretch on a Pi v3. I've done a fair amount of searching on this topic and it appears that I'm not alone!! When I use "import mysqldb" I get an error "ImportError: No module named mysqldb". I've even posted this question on StackEx...
by RDK
Sun May 05, 2019 5:22 pm
Forum: Networking and servers
Topic: Putting Mysql database file on external hard drive
Replies: 16
Views: 4002

Re: Putting Mysql database file on external hard drive

Thanks, I've got a lot to learn....Rob
by RDK
Sun May 05, 2019 11:10 am
Forum: Networking and servers
Topic: Putting Mysql database file on external hard drive
Replies: 16
Views: 4002

Re: Putting Mysql database file on external hard drive

I followed the steps in the Jan 2019 entry at this reference ( https://lb.raspberrypi.org/forums/viewtopic.php?t=25978#p1397915 ) and it seems to be working: $ sudo /etc/init.d/mysql stop $ sudo mkdir /path/to/new/datadir $ sudo cp -R /var/lib/mysql/* /path/to/new/datadir $ sudo nano /etc/mysql/my.c...
by RDK
Sat May 04, 2019 5:39 pm
Forum: Networking and servers
Topic: Putting Mysql database file on external hard drive
Replies: 16
Views: 4002

Re: Putting Mysql database file on external hard drive

Thanks. The partition (usb stick) is mounted since I can access (via Simba) other files on it, both before and after I tried to restart the service. What should the permissions be set to?....RDK
by RDK
Sat May 04, 2019 4:12 pm
Forum: Networking and servers
Topic: Putting Mysql database file on external hard drive
Replies: 16
Views: 4002

Re: Putting Mysql database file on external hard drive

I added "nofail" to my mount statement in the fstab and also converted it to use the UUID. That has been working now for several weeks. and I have started using MariaDB and setting up users, etc, but no databases. Today I tried to make the changes suggested by rpdom on April 7 so I could have my dat...
by RDK
Sat Apr 13, 2019 5:26 am
Forum: Beginners
Topic: Object Programming in Python
Replies: 9
Views: 671

Re: Object Programming in Python

Heater....I have installed VS_Code on my laptop and I think it is operational. Seems like I have a lot to learn but it looks like something close to my wants. EDIT: My error: When coding an object, for example c=open(….), and I type x=c. I expected then to immediately get a drop-down of the methods ...
by RDK
Tue Apr 09, 2019 4:23 am
Forum: Beginners
Topic: Object Programming in Python
Replies: 9
Views: 671

Re: Object Programming in Python

B.Goode...No, I have not installed those libraries on the laptop. I've looked for a Windows install for pyModbus without success.

Heater....Sounds interesting. I will look at it...RDK
by RDK
Mon Apr 08, 2019 4:26 pm
Forum: Beginners
Topic: Python vs Python 3 - can't find module??
Replies: 4
Views: 253

Re: Python vs Python 3 - can't find module??

OK, well, I in fact installed it from the GIT sudo git clone https://github.com/sourceperl/pyModbusTCP.git Now should I reinstall as you propose? How do I remove the clone installed library? Thinking about it I have many libraries which I installed via the clone process, for example RTL_433. Is ther...
by RDK
Mon Apr 08, 2019 3:24 pm
Forum: Beginners
Topic: Python vs Python 3 - can't find module??
Replies: 4
Views: 253

Python vs Python 3 - can't find module??

I have a problem with Python 3 not finding a module library, but Python 2.7 does. Here is a VERY simple program: #!/usr/bin/env python # -*- coding: utf-8 -*- from pyModbusTCP.client import ModbusClient print("hello world") Below you can see back to back runs of this program only switching from pyth...
by RDK
Mon Apr 08, 2019 7:06 am
Forum: Networking and servers
Topic: Putting Mysql database file on external hard drive
Replies: 16
Views: 4002

Re: Putting Mysql database file on external hard drive

Andyroo: Thanks for the idea. Currently in my /etc/fstab I have this line: /dev/sda1 /mnt/usbdrive vfat defaults,dmask=000,fmask=111 0 0 which is configured to work for SAMBA read/write file sharing. If I understand you, and in practice it works like this, if I change USB sticks it does not matter a...
by RDK
Mon Apr 08, 2019 6:47 am
Forum: Beginners
Topic: Object Programming in Python
Replies: 9
Views: 671

Re: Object Programming in Python

Currently I'm writing code on my Windows 10 Pro laptop using IDLE and then transferring the code to a Raspberry Pi to run. For the Pi I've installed some object packages, like RTL_433, pyModbus, etc, from a GIT site or other sources. My code generally works on the Pi, but on the laptop when coding I...
by RDK
Sun Apr 07, 2019 1:56 pm
Forum: Networking and servers
Topic: Putting Mysql database file on external hard drive
Replies: 16
Views: 4002

Re: Putting Mysql database file on external hard drive

Great, I actually understand what you have proposed. Now how do I insure that it is mounted before MariaDB starts? The USB stick is defined in the /etc/fstab. Is that sufficient?...RDK
by RDK
Sun Apr 07, 2019 12:11 pm
Forum: Networking and servers
Topic: Putting Mysql database file on external hard drive
Replies: 16
Views: 4002

Re: Putting Mysql database file on external hard drive

Douglas.....All of the files in the concatenation list in this file (/etc/mysql/my.cnf) , shown below, were either empty or did not contain the directory information # The MariaDB/MySQL tools read configuration files in the following order: # 1. "/etc/mysql/mariadb.cnf" (this file) to set global def...
by RDK
Sun Apr 07, 2019 9:40 am
Forum: Networking and servers
Topic: Putting Mysql database file on external hard drive
Replies: 16
Views: 4002

Re: Putting Mysql database file on external hard drive

I realize that this is an old posting, but I have just installed MariaDB on my Pi 3b running Stretch. Before I start any database development I would like to have the data stored/accessed on an external HD or USB stick. With the passage of time and the MariaDB MySQL replacement on Raspbian Stretch, ...
by RDK
Sun Apr 07, 2019 8:51 am
Forum: Beginners
Topic: Installing MariaDB on Stretch
Replies: 7
Views: 214

Re: Installing MariaDB on Stretch

OK, correct me if I'm wrong: 1. to create the non- root user with root powers (ie "admin") I have to use the sudo mysql command? and then create user 'admin'@'localhost' identified by 'a good pw'; grant all privileges on *.* to 'admin'@'localhost' with grant option; 2. After that I use the mysql -u ...
by RDK
Sun Apr 07, 2019 5:30 am
Forum: Beginners
Topic: Installing MariaDB on Stretch
Replies: 7
Views: 214

Re: Installing MariaDB on Stretch

Thanks. I'll re-read this the study your links. RDK
by RDK
Sat Apr 06, 2019 3:51 pm
Forum: Beginners
Topic: Error when sudo apt-get dist-upgrade of Pi B+
Replies: 8
Views: 312

Re: Error when sudo apt-get dist-upgrade of Pi B+

Not sure why, but after two reboots it is now working correctly....RDK
by RDK
Sat Apr 06, 2019 3:49 pm
Forum: Beginners
Topic: Installing MariaDB on Stretch
Replies: 7
Views: 214

Re: Installing MariaDB on Stretch

OK, but when I ran the

Code: Select all

sudo mysql -u root -p
command I tried to use a different user id and PW but that was rejected. When I ran it again with root as the user and used the REAL root password for my box, it worked. I'm not real happy to have it require the REAL root id and password....RDK
by RDK
Sat Apr 06, 2019 3:14 pm
Forum: Beginners
Topic: Object Programming in Python
Replies: 9
Views: 671

Re: Object Programming in Python

Thanks....good to know I'm not the only one out walking in the wilderness

I'll check these out....RDK
by RDK
Sat Apr 06, 2019 3:12 pm
Forum: Beginners
Topic: Installing MariaDB on Stretch
Replies: 7
Views: 214

Installing MariaDB on Stretch

I set out to install MySQL but I gather that Raspbian is now working with MariaDB and that it is fully compatible with MySQL. Ok no problem as I'm a new user to either. I installed like this: $ sudo apt-get install mariadb-server $ sudo mysql -u me -p Enter password: ERROR 1698 (28000): Access denie...
by RDK
Sat Apr 06, 2019 12:59 pm
Forum: Beginners
Topic: Object Programming in Python
Replies: 9
Views: 671

Object Programming in Python

I'm an old time programmer brought up writing Fortran programs, ie what folks now call Procedural Programming. I've written a few things in Python, but for sure have not used many of the object-oriented features which are available. I'm reading a couple books right now on the subject, but they mostl...

Go to advanced search