host

Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号

对着背影说爱祢 提交于 2019-12-25 22:39:08
如何开启MySQL的远程帐号-1)首先以 root 帐户登陆 MySQL 在 Windows 主机中点击开始菜单,运行,输入“cmd”,进入控制台,然后cd 进入MySQL 的 bin 目录下,然后输入下面的命令。 > MySQL -uroot -p123456 (123456 为 root 用户的密码。) 如何开启MySQL的远程帐号-2)创建远程登陆用户并授权 > grant all PRIVILEGES on test_db.* to root@'192.168.1.101' identified by '123456'; 上面的语句表示将 test_db 数据库的所有权限授权给 root 这个用户,允许 root 用户在 192.168.1.101 这个 IP 进行远程登陆,并设置 root 用户的密码为 123456 。 下面逐一分析所有的参数: all PRIVILEGES 表示赋予所有的权限给指定用户,这里也可以替换为赋予某一具体的权限,例如select,insert,update,delete,create,drop 等,具体权限间用“,”半角逗号分隔。 test_db.* 表示上面的权限是针对于哪个表的,test_db指的是数据库,后面的 * 表示对于所有的表,由此可以推理出:对于全部数据库的全部表授权为“*.*”,对于某一数据库的全部表授权为“数据库名.*”

tomcat部署多个项目

白昼怎懂夜的黑 提交于 2019-12-25 12:09:10
1 配置说明 一个tomcat进程运行两个项目,启动多个端口提供服务,即修改server.xml 增加多个service配置选项 <Service name="Catalina1"> <Connector port="9001" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> <Engine name="Catalina1" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.LockOutRealm"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Realm> <Host name="localhost" appBase="webapps1" unpackWARs="true" autoDeploy="true"> <Valve className="org.apache.catalina.valves.AccessLogValve"

PHP - Writing to Host file programmatically

夙愿已清 提交于 2019-12-25 09:15:56
问题 I am doing my project implementation in localhost Xampp installation Part of my project is , When the user sign up on my page he will be asked for his desired sub domain and from then on his URL will be : chosensubdomain.mysite.com Everything works perfectly , except for sub domain i have to manually add the entries in windows host file as follows 127.0.0.1 chosensubdomain.mysite.com abc.mysite.com xyz.mysite.com What i want was when the form submits the host file should be added up with a

Android TabHost setCurrentTab()

别说谁变了你拦得住时间么 提交于 2019-12-25 04:06:32
问题 I use TabHost and i have 2 tabs with 2 activityes i want to set second tab to be default tab but when tabhost start he load first tab1 and before tab2 an this is wrong because in these 2 activityes i load data from webservice ! My question is how to set current tab second tab without load first tab! My tabhost code: public class TabsHandler extends TabActivity { private static TabHost tabHost; Intent intent; private void setupTabHost() { tabHost = (TabHost) findViewById(android.R.id.tabhost);

如何向Makefile传递参数?

一曲冷凌霜 提交于 2019-12-25 03:44:15
答: 直接在make命令的后面加上参数,如:   make HOST_CFLAGS=-I. 注意事项:   HOST_CFLAGS变量将会替换相应Makefile中的HOST_CFLAGS,也就是Makefile中的HOST_CFLAGS将 被覆盖 掉   来源: https://www.cnblogs.com/dakewei/p/11243620.html

Wordpress Host and Domain Migration

那年仲夏 提交于 2019-12-25 03:39:34
问题 I am moving/migrating a Wordpress Blog from Hostgator to IPage but having a lot of problems with this process, in the process I have changed the domain. This is what I’ve done so far 1.) Installed a Fresh wordpress on IPage after removing the old one. 2.) Transfer and replaced all the files from Hostgator to IPage, except the wp-config file. 3.) Drop all the Database table on IPage, and then upload the database from Hostgator. 4.) I changed the siteurl are the wp_option to my new domain. At

socketserver 模块简介

主宰稳场 提交于 2019-12-25 03:08:24
一、socketserver模块简介 socketserver模块简化了网络编程,模块下有五个服务类:BaseServer、TCPServer、UDPServer、UnixStreamServer、UnixDatagramServer 。这五个类的关系如下: +------------+ | BaseServer | +------------+ | v +-----------+ +------------------+ | TCPServer |------->| UnixStreamServer | +-----------+ +------------------+ | v +-----------+ +--------------------+ | UDPServer |------->| UnixDatagramServer | 1、四个基本的同步服务器类简介: class socketserver.TCPServer(server_address, RequestHandlerClass, bind_and_activate=True):TCP数据流服务器 class socketserver.UDPServer(server_address, RequestHandlerClass, bind_and_activate=True):UDP数据报服务器 class

How do I share cached data between a WCF service and the process hosting the service?

时光怂恿深爱的人放手 提交于 2019-12-25 02:16:02
问题 I have an ordinary windows service that processes a large data set and stores it to a DB. This windows service also acts to host a WCF service that serves the processed data up to one or more GUIs. Currently the WCF service has to hit the DB at least once to get the data for the client, but the size of the data set is such that this is extremely slow, and eats up a lot of memory because of the duplication of data. Ideally I would like to share the results of the data processing directly (in

PHP获取网页内容的几种方法

北战南征 提交于 2019-12-25 02:00:37
方法1: 用file_get_contents以get方式获取内容 <?php $url='http://www.domain.com/?para=123'; $html= file_get_contents($url); echo$html; ?> 方法2:用file_get_contents函数,以post方式获取url <?php $url= 'http://www.domain.com/test.php?id=123'; $data= array('foo'=> 'bar'); $data= http_build_query($data); $opts= array( 'http'=> array( 'method'=> 'POST', 'header'=>"Content-type: application/x-www-form-urlencoded\r\n" . "Content-Length: " . strlen($data) . "\r\n", 'content'=> $data ) ); $ctx= stream_context_create($opts); $html= @file_get_contents($url,'',$ctx); 如果需要再传递cookie数据,则把 'header'=>"Content-type: application/x-www

Harbor与Docker的部署搭建

喜你入骨 提交于 2019-12-25 01:16:08
Harbor 安装小记 场景 在搭建私有云环境时,我们需要将我们打包的镜像存储在局域网内,而不是把镜像推送到hub.docker.com;一方面是因为安全问题,另一方面在局域网内存储,网速炒鸡快。当然对于私有云搭建,在本地搭建镜像仓库那是必须的。接下来,对我安装Harbor 做一个记录。 分析 因为 Harbor 是用 docker 跑起来的,所以我们的机器上必须有 docker 环境,还有比较中要的一点,Harbor 需要使用docker-compose, 所以需要 docker-compose。 安装 **docker 安装 ** Harbor在安装前的几个注意点 由于Harbor有1.8后和前的配置不一样,决定先安装1.8,结果报错如下 [ root@localhost harbor ] # ./install.sh [ Step 0 ] : checking installation environment .. . ✖ Need to upgrade docker package to 17.06.0+. 对docker的版本要求较高,决定先卸载之前的docker [ root@topcheer harbor ] # docker --version Docker version 1.13.1, build 7f2769b/1.13.1 [ root@topcheer