mamp

Connect to MySQL db from Jupyter notebook

こ雲淡風輕ζ 提交于 2020-05-08 04:08:10
问题 I am using Jupyter Notebooks to learn Python. I would like to connect to a MySQL db hosted locally hosted through MAMP. How would I approach this? 回答1: import os import pymysql import pandas as pd host = os.getenv('MYSQL_HOST') port = os.getenv('MYSQL_PORT') user = os.getenv('MYSQL_USER') password = os.getenv('MYSQL_PASSWORD') database = os.getenv('MYSQL_DATABASE') conn = pymysql.connect( host=host, port=int(3306), user="root", passwd=password, db="[YOUR_DB_NAME]", charset='utf8mb4') df = pd

Connect to MySQL db from Jupyter notebook

时光毁灭记忆、已成空白 提交于 2020-05-08 04:07:30
问题 I am using Jupyter Notebooks to learn Python. I would like to connect to a MySQL db hosted locally hosted through MAMP. How would I approach this? 回答1: import os import pymysql import pandas as pd host = os.getenv('MYSQL_HOST') port = os.getenv('MYSQL_PORT') user = os.getenv('MYSQL_USER') password = os.getenv('MYSQL_PASSWORD') database = os.getenv('MYSQL_DATABASE') conn = pymysql.connect( host=host, port=int(3306), user="root", passwd=password, db="[YOUR_DB_NAME]", charset='utf8mb4') df = pd

Laravel remote DB connection issue on MAMP Pro OSX

谁都会走 提交于 2020-04-18 03:50:36
问题 I have an existing project on Laravel. I want to make a connection to remote DB server so our team can test with the same set of data . .ENV File APP_NAME=Laravel APP_ENV=live APP_KEY=base64:FE9rhqH/+5UHVJCfoYS6xHNsU9U1DJaPkUDmRSv6JxI= APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=http://laravel.test/ DB_CONNECTION=mysql DB_HOST=104.1XX.XX.XX DB_PORT=3306 DB_DATABASE=My_db_name DB_USERNAME=db_username DB_PASSWORD=db_password DB_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock BROADCAST_DRIVER=log

MAMP Pro for Mac(PHP/MySQL开发环境) v5.7

核能气质少年 提交于 2020-04-05 19:19:41
[名称]: MAMP Pro for Mac [大小]: 378.12 MB [语言]:英文 [测试环境]: Mac OS 10.15.x [下载链接]: https://www.macdown.com/mac/647.html 简介 mamp pro mac版是mac平台上最优秀的本地服务器搭配软件,也是最好的mysql开发环境和php开发环境,包含了acintosh、Apache、MySQL和PHP四大开发环境,用户只要轻松点选就能对架站、讨论区、论坛等必备的元件进行安装,让你轻松在mac平台上架设自己的web运行环境。 功能亮点 将wordPress主机发布到您的Live Hosting Server MAMP PRO可以发布您的wordPress主机。只需在新的远程选项卡中输入您的实时服务器凭据,然后选择要与根目录一起传输的数据库。只需单击一下,您的项目即可生效。 从Live Servers导入wordPress网站 将现有wordPress站点从实时服务器导入MAMP PRO。您现在可以更改页面或测试新的插件和模板,而无需修改实时页面。然后,您可以使用您的更改。 将wordPress站点从一台服务器迁移到另一台服务器 想要切换您的托管服务提供商?没问题,只需将您的网站导入MAMP PRO并使用新主机的服务器设置进行测试。测试一切是否继续工作,然后将您的网站转移到新的提供商

mamp 安装php扩展

旧巷老猫 提交于 2020-03-30 01:46:12
1.下载扩展源码 2.解压进入扩展目录 3. /Applications/MAMP/bin/php/php7.3.1/bin/phpize (中间php版本根据自身环境来填写) 4. ./configure --with-php-config=/Applications/MAMP/bin/php/php7.3.1/bin/php-config 5.make && make install 6.extension=swoole.so 在安装会将.so文件放入 /Applications/MAMP/bin/php/php7.3.1/lib/php/extensions/no-debug-non-zts-20180731/ 里面 来源: https://www.cnblogs.com/LF-place/p/12596219.html

如何使用命令提示符导出mysql数据库?

眉间皱痕 提交于 2020-03-15 21:40:33
我的数据库很大,因此我想使用命令提示符将其导出,但是我不知道如何。 我正在使用WAMP。 #1楼 在此路径转到命令提示符, C:\\Program Files (x86)\\MySQL\\MySQL Server 5.0\\bin> 然后使用此命令导出数据库( -p后没有空格 ) mysqldump -u[username] -p[userpassword] yourdatabase > [filepath]wantedsqlfile.sql #2楼 我已将Wamp服务器安装在D:驱动器中,因此您必须从ur命令行->转到以下路径(如果您已将您的wamp安装在c:驱动器中,则只需替换d:wih c:这里) D:\>cd wamp D:\wamp>cd bin D:\wamp\bin>cd mysql D:\wamp\bin\mysql>cd mysql5.5.8 (whatever ur verserion will be displayed here use keyboard Tab button and select the currently working mysql version on your server if you have more than one mysql versions) D:\wamp\bin\mysql\mysql5.5.8>cd bin D:

MAMP on Windows 10 - Apache Server starts and then stops

杀马特。学长 韩版系。学妹 提交于 2020-03-13 03:47:02
问题 I'm using Windows 10. When I start servers on MAMP, the circle next to Apache Server turns green and then turns white again. MySQL starts as expected. I know Apache Server is starting because I see httpd.exe show up in Resource Monitor on port 8888, but then it grays out and disappears. So, something appears to be stopping Apache Server after it starts. The computer is new and I had McAfee LiveSafe running, but I uninstalled that then rebooted and it didn't fix the problem. I also have

MAMP on Windows 10 - Apache Server starts and then stops

时光总嘲笑我的痴心妄想 提交于 2020-03-13 03:42:48
问题 I'm using Windows 10. When I start servers on MAMP, the circle next to Apache Server turns green and then turns white again. MySQL starts as expected. I know Apache Server is starting because I see httpd.exe show up in Resource Monitor on port 8888, but then it grays out and disappears. So, something appears to be stopping Apache Server after it starts. The computer is new and I had McAfee LiveSafe running, but I uninstalled that then rebooted and it didn't fix the problem. I also have

MAC下安装MAMP的Mongodb

。_饼干妹妹 提交于 2020-03-10 04:27:06
首先安装Mongodb服务端: 1、brew install mongodb 2、修改 vim /usr/local/etc/mongod.conf文件,db路劲    3、创建、修改/data/db,并为可写权限; 4、启动服务端。brew services start mongodb 安装PHP的mongo、mongodb扩展 1、 http://pecl.php.net/package/mongo 下载最新的mongo包; 2、进入到此目录,输入:/Applications/MAMP/bin/php/php5.6.30/bin/phpize 3、./configure --with-php-config=/Applications/MAMP/bin/php/php5.6.30/bin/php-config --with-openssl-dir=/usr/local/Cellar/openssl/1.0.2l 4、make 5、sudo make install 6、安装成功后mongo.so会复制到/Applications/MAMP/bin/php/php5.6.30/lib/php/extensions/no-debug-non-zts-20131226目录下。 7、配置mamp php.ini;    8、重启apache,即可看到mongo服务。 9、 PS

Webpage stopped responding to external CSS changes

风流意气都作罢 提交于 2020-03-06 05:57:42
问题 I'm currently working on developing a website on my computer, and I've been very successful at working on my html and external stylesheet for some time. The results don't come out the way I want, but at least the code is doing what I tell it to do. However, I've been trying to incorportate PHP into my pages and I've since downloaded MAMP to my computer and changed my pages into .php pages so that the php pages I want to include are included. I managed to do all that just fine and yesterday I