Nobbie wrote:You are absolutely right, freezing is bad, very bad. Freezing is not a controled behaviour, mostly its a severe addressing error or similar. Is there a problem with 64bit vs. 32bit (only a clue)? If i were you, i would go for a cheap Linux PC and run Xampp there. That does not cost much money, its stable, its Linux (i love Linux). A used PC from Ebay for lets say 50 bugs will do the job. You can keep your MacOS PC as a develoment environment, for testing purpose move your scripts and files to the Linux server and you are done.
My workaround was something like that. I run a Docker image with mysql. For some reason beyond my comprehension, the python code works on the docker container with mysql. But does not on XAMPP. Again, the same code works fine on Windows and Linux. I've tested the same code on two MacOS with same issue.
For future reference, to use Docker as I did, just create a file docker-compose.yml with the code:
- Code: Select all
version: '3.3'
volumes:
data:
services:
db:
image: mysql:5.6
ports:
- "3306:3306"
volumes:
- data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=automacao
app:
image: phpmyadmin/phpmyadmin:latest
links:
- db
ports:
- 80:80
environment:
- PMA_ARBITRARY=1
And run it by
- Code: Select all
sudo docker-compose up app