The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
How to replace all database ip user?
Such as member "A" want to replace all the post using Ip 1.2.3.4 All that I know is, it can be replaced from mysql database, but it takes one and one, cannot doit together. How to relpace all the post member A |
#2
|
||||
|
||||
![]()
Replace what with what, exactly? replace the user? replace the post text?
|
#3
|
|||
|
|||
![]()
replace ip adress.
example : user A post <192.168.0.1> i want replace all Ip address user A like this <192.168.5.4> all post |
#4
|
||||
|
||||
![]() Quote:
update post set ipaddress='new.ip.address' where ipaddress='old.ip.address' [/sql] |
#5
|
|||
|
|||
![]()
can u give me the sample? thx
|
#6
|
||||
|
||||
![]() I just did! [sql] update post set ipaddress="192.168.0.1" where ipaddress="192.168.5.4" [/sql] |
#7
|
|||
|
|||
![]()
okay im try friend
You are not authorized to execute SQL queries |
#8
|
||||
|
||||
![]()
How are you trying to execute the SQL query? Are you using the cl, something like phpmyadmin, or vBulletin's admin cp?
Not all users are given permission to run queries. |
#9
|
|||
|
|||
![]()
okay i set '1' in config.and its done...im try now :
---------------------------------- update post set ipaddress="202.138.235.29" where ipaddress="202.138.235.29" ---------------------------------- ------------------ Confirm Query Execution This query may modify data in your database. If this change is done in error, it is possible that you will not be able to recover from this change. Are you sure you wish to continue? ---------------- Continue or restart? |
#10
|
||||
|
||||
![]()
You can continue, but that query won't do anything. You're taking the ipaddress where it is 202.138.235.29 and replacing it with 202.138.235.29 (the same number).
Before you continue, what are you trying to do (besides add <>'s around IP addresses)? What's your end goal? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|