Go to advanced search

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: 4703

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: 739

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: 739

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: 341

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: 341

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: 4703

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: 739

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: 4703

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: 4703

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: 4703

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: 476

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: 476

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: 407

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: 476

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: 739

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: 476

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: 739

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...
by RDK
Fri Apr 05, 2019 5:48 am
Forum: Beginners
Topic: Error when sudo apt-get dist-upgrade of Pi B+
Replies: 8
Views: 407

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

Note: Pi B+ Continuing the saga from my previous posts: I found a Bluetooth dongle and reran these commands: sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade The last one took forever (5+ hours), but finished with no errors. However, now when I boot-up, I get this message: failed t...
by RDK
Tue Apr 02, 2019 4:46 pm
Forum: Beginners
Topic: Error when sudo apt-get dist-upgrade of Pi B+
Replies: 8
Views: 407

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

Yes, I just finished upgrading to Stretch via this reference (https://www.datenreise.de/en/raspberry-pi-raspbian-update-update-jessie-to-stretch/). And, yes, I got basically the same errors from the sudo apt-get dist-upgrade and the sudo apt-get autoremove commands Is there a way to tell it not to l...
by RDK
Tue Apr 02, 2019 5:31 am
Forum: Beginners
Topic: Error when sudo apt-get dist-upgrade of Pi B+
Replies: 8
Views: 407

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

Yesterday I decided to update this Pi B+ currently running Jessie. I ran the sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade The first two completed normally, but the last sudo apt-get dist-upgrade ended with an error Setting up bluez (5.23-2+rpi2) ... Job for bluetooth.service fa...
by RDK
Tue Apr 02, 2019 5:20 am
Forum: Beginners
Topic: Get a new folder in the the PATH
Replies: 6
Views: 259

Re: Get a new folder in the the PATH

OK, I edited /etc/profile and when I echo $PATH it shows the change. However, I not sure this will affect other users on the Pi....RDK
by RDK
Mon Apr 01, 2019 4:16 pm
Forum: Beginners
Topic: Get a new folder in the the PATH
Replies: 6
Views: 259

Re: Get a new folder in the the PATH

OK, I saw that reference, but mostly it confused me!! There are/were too many answers and they often seemed to be in conflict. Mostly I want one simple answer. But, I will go back for another look....ROK
by RDK
Mon Apr 01, 2019 3:38 pm
Forum: Beginners
Topic: Get a new folder in the the PATH
Replies: 6
Views: 259

Re: Get a new folder in the the PATH

OK, but if I want to keep them all together in the current directory. Is there a way, as per my original post?....RDK
by RDK
Mon Apr 01, 2019 3:03 pm
Forum: Beginners
Topic: Get a new folder in the the PATH
Replies: 6
Views: 259

Get a new folder in the the PATH

I have installed some programs in /usr/pgms/MyStuff which I would like to run from the command line without first cd-ing the that folder or including the full path on the program command. In addition I want those programs to be available to other users on this Pi. For example, I want to run test.py ...
by RDK
Sun Mar 17, 2019 7:39 am
Forum: Beginners
Topic: How to detect if USB controller is hung
Replies: 0
Views: 424

How to detect if USB controller is hung

I've been reading about folks with issues ( https://raspberrypiandstuff.wordpress.com/2017/08/04/rtl_433-on-a-raspberry-pi-made-bulletproof/ ) where a program stops suddenly with no errors or explanations. The explanation seem to be associated with the USB or USB controller hanging. I've experienced...

Go to advanced search