heihei1252 / phpsocks5

Automatically exported from code.google.com/p/phpsocks5
0 stars 0 forks source link

创建数据表失败? #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
用的空间是“freewebhostingarea”,我申请的空间地址是“http://z
hangbodhr.ueuo.com/”,创建了数据库

php文件里的内容如下:
=====================================================================
$dbhost = 'http://ueuo.freewebhostingarea.com/pma/';
$dbport = '3306';
$dbuser = '417595';
$dbpass = '********';
$dbname = '417595';
=====================================================================
然后点击php文件的地址,显示的是类似“K0Jqh@C(ZQCbfYz@cw{d
O}H+?3.7VUd7Y+”这种莫名其妙的文字。

请问我的错误出在哪里?

Original issue reported on code.google.com by zhangbo...@gmail.com on 25 Mar 2011 at 1:46

GoogleCodeExporter commented 8 years ago
dbhost是 http://ueuo.freewebhostingarea.com/pma/ ?你用phpMyAdmin能连接 
http://ueuo.freewebhostingarea.com/pma/ 这个数据库吗?

Original comment by lehui99 on 25 Mar 2011 at 1:54

GoogleCodeExporter commented 8 years ago
phpMyAdmin是什么东西?不太明白。

我并不能确定dbhost是 
http://ueuo.freewebhostingarea.com/pma/,因为点这个地址能用网页上��
�个免费空间的数据库,所以我才填了这个地址。如果我填错�
��,那正确的应该填什么?

PS:这个免费空间的申请地址是“http://www.freewebhostingarea.com/re
gister.html”,要不作者您申请一个空间,看看用这个空间搭建
代理的应该怎们填这些数据?

Original comment by zhangbo...@gmail.com on 25 Mar 2011 at 3:06

GoogleCodeExporter commented 8 years ago
Google搜索一下马上就能知道phpMyAdmin是什么。

Original comment by lehui99 on 25 Mar 2011 at 5:09

GoogleCodeExporter commented 8 years ago
我当然知道用Google搜索就能了解“phpMyAdmin”是什么,可这和�
��一开始的问题无关吧。我只想知道我上面填的那些数据对不
对(也就是的那个空间的dbhost到底是什么)。

Original comment by zhangbo...@gmail.com on 26 Mar 2011 at 3:40

GoogleCodeExporter commented 8 years ago
dbhost就是MySQL数据库的地址,也就是说如果phpMyAdmin也无法连��
�到dbhost的话,dbhost就是错的,否则就是对的。

dbhost到底是什么,每个空间都不同,具体只能在你的空间帮��
�手册中找了。即使我在同样的地址申请一个空间,MySQL的地��
�也不一定是一样的。通常PHP虚拟主机供应商会有多个MySQL,��
�请的时候随机分配一个给你。所以我申请了之后看到的MySQL��
�址不一定就是你的。不过我还是先去试试看申请一个。

更进一步,在你申请的空间中可以尝试一下架设一个Wordpress��
�Discuz,其中的数据库地址如果能使用 
http://ueuo.freewebhostingarea.com/pma/ 
就是对的,如果不能使用就是错的。

更多参数的作用可以参考: 
https://code.google.com/p/phpsocks5/wiki/parameter_list

Original comment by lehui99 on 26 Mar 2011 at 6:07

GoogleCodeExporter commented 8 years ago
俺是个技术白,如果从头学架设Wordpress或Discuz那就太浪费时��
�了。

我还是在那个网站的帮助手册里再找找吧,谢谢你的软件和��
�复。

如果你申请了那个空间,知道如何找到那个空间的dbhost,那��
�请告诉我,谢谢。

Original comment by zhangbo...@gmail.com on 26 Mar 2011 at 8:14

GoogleCodeExporter commented 8 years ago
我去 http://www.freewebhostingarea.com/register.html 
上申请了一个空间,找到MySQL的地址是localhost,就是php空间的
本机。这样看来每个人应该是一样的localhost。

Original comment by lehui99 on 26 Mar 2011 at 11:59

GoogleCodeExporter commented 8 years ago
那你用这个空间搭建代理成功了吗?那五个选项你是怎么填��
�?dbhost?dbport?

能否请你再推荐几个可用来代建服务器的免费空间呢?

Original comment by zhangbo...@gmail.com on 26 Mar 2011 at 1:41

GoogleCodeExporter commented 8 years ago
我成功的,虽然速度不是很快。我的php设置:
$dbhost = 'localhost';
$dbport = '3306';
$dbuser = '314153';
$dbpass = '*********';
$dbname = '314153';

Original comment by lehui99 on 26 Mar 2011 at 1:49

GoogleCodeExporter commented 8 years ago
我也终于成功了,万分感谢!(确实速度很慢……)

有两个建议:
1.最好能有类似WallProxy那样的GUI——不需要装类似java这种运��
�库,有个稍微漂亮点的界面。能隐藏、能自启;

2.在你的“php_hosting_support_phpsocks5_list_detail”里多添加几个支�
��的空间。

总之还是非常感谢!

Original comment by zhangbo...@gmail.com on 26 Mar 2011 at 2:22

GoogleCodeExporter commented 8 years ago
谢谢你的建议。

GUI界面本来就是要准备要做的,由于前期还有其他工作需要��
�,所以一直还没有做GUI。

php_hosting_support_phpsocks5_list_detail中会慢慢添加一些支持空间的
。

Original comment by lehui99 on 26 Mar 2011 at 2:46

GoogleCodeExporter commented 8 years ago
我用的是同样的http://www.freewebhostingarea.com/register.html 
,而且设置也没问题,但为什么显示Create table 1 error呢?

Original comment by huang.sh...@gmail.com on 4 Jun 2011 at 4:29

GoogleCodeExporter commented 8 years ago
解决了~把已经存在的表删除就好了

Original comment by huang.sh...@gmail.com on 4 Jun 2011 at 4:41

GoogleCodeExporter commented 8 years ago
为什么创建成功后,使用代理时网站显示"连接被重置    
载入页面时到服务器的连接被重置。",而且一个网站也上不�
��呢?(校园网)

Original comment by huang.sh...@gmail.com on 4 Jun 2011 at 4:53

GoogleCodeExporter commented 8 years ago
贴一下客户端的2个log文件和服务器端的1个log文件吧?总共3��
�文件。

Original comment by lehui99 on 5 Jun 2011 at 4:07

GoogleCodeExporter commented 8 years ago
服务端没有log文件,客户端有两个,其中的socks5out.log没有数�
��。

Original comment by huang.sh...@gmail.com on 6 Jun 2011 at 1:52

Attachments:

GoogleCodeExporter commented 8 years ago
我把服务端的文件截图发下。

Original comment by huang.sh...@gmail.com on 6 Jun 2011 at 1:56

Attachments:

GoogleCodeExporter commented 8 years ago
你设置的代理服务器类型不是socks5,而是http。phpsocks5的代理�
��型为socks5,而非http。

Original comment by lehui99 on 7 Jun 2011 at 7:53

GoogleCodeExporter commented 8 years ago
java.io.EOFException
    at phpsocks5.PhpSocks5.socksResult(PhpSocks5.java:432)
    at phpsocks5.PhpSocks5.run(PhpSocks5.java:454)
    at java.lang.Thread.run(Unknown Source)
java.io.EOFException
    at phpsocks5.PhpSocks5.socksResult(PhpSocks5.java:432)
    at phpsocks5.PhpSocks5.run(PhpSocks5.java:454)
    at java.lang.Thread.run(Unknown Source)

请问这是什么问题呢?

Original comment by huang.sh...@gmail.com on 16 Jun 2011 at 8:02

GoogleCodeExporter commented 8 years ago
不管打开开什么网站,他都会弹出一个“另存为”窗体,打��
�百度时下载下来的文件见附件。上面发的错误信息是socks5err.
log 里的。用的是火狐5,foxyProxy的socksv5型的代理。

Original comment by huang.sh...@gmail.com on 16 Jun 2011 at 8:08

Attachments:

GoogleCodeExporter commented 8 years ago
还是老问题: 
你设置的代理服务器类型不是socks5,而是http。phpsocks5的代理�
��型为socks5,而非http。

Original comment by lehui99 on 16 Jun 2011 at 8:36

GoogleCodeExporter commented 8 years ago
启用polipo后,用10088端口打开网页出现以下错误
Connect to code.google.com:80 failed: SOCKS protocol error

Original comment by huang.sh...@gmail.com on 16 Jun 2011 at 8:37

GoogleCodeExporter commented 8 years ago
启用polipo后,重新贴一下客户端和服务器端的log呢?

也可以多试几次试试看?

Original comment by lehui99 on 16 Jun 2011 at 8:56

GoogleCodeExporter commented 8 years ago
现在好了。奇怪啊。。

Original comment by huang.sh...@gmail.com on 16 Jun 2011 at 10:56

GoogleCodeExporter commented 8 years ago
貌似数据库服务器地址写外网IP是不行的,改成127.��
�.0.1就可以了。

Original comment by rom...@gmail.com on 20 Nov 2012 at 6:04